VC6 sp6 编译出现下列提示,如何解决?谢谢
 error C2065: 'WC_EDIT' : undeclared identifier
 error C2065: 'WC_BUTTON' : undeclared identifier
 error C2065: 'WC_EDIT' : undeclared identifier
 error C2065: 'WC_BUTTON' : undeclared identifier

解决方案 »

  1.   

    添加名为:commctrl.r的文件, 是给资源文件用的, 文件里的内容是这样的: //================ COMMCTRL.R ===================== #ifndef WC_HEADER 
    #define WC_HEADER              "SysHeader" 
    #endif 
    #ifndef WC_LISTVIEW 
    #define WC_LISTVIEW            "SysListView" 
    #endif #ifndef WC_TREEVIEW 
    #define WC_TREEVIEW            "SysTreeView" 
    #endif #ifndef WC_COMBOBOXEX 
    #define WC_COMBOBOXEX          "ComboBoxEx32" 
    #endif #ifndef WC_TABCONTROL 
    #define WC_TABCONTROL          "SysTabControl" 
    #endif #ifndef WC_IPADDRESS 
    #define WC_IPADDRESS            "SysIPAddress32" 
    #endif #ifndef WC_PAGESCROLLER 
    #define WC_PAGESCROLLER        "SysPager" 
    #endif #ifndef WC_NATIVEFONTCTL 
    #define WC_NATIVEFONTCTL        "NativeFontCtl" 
    #endif #ifndef WC_BUTTON 
    #define WC_BUTTON              "Button" 
    #endif #ifndef WC_STATIC 
    #define WC_STATIC              "Static" 
    #endif #ifndef WC_EDIT 
    #define WC_EDIT                "Edit" 
    #endif #ifndef WC_LISTBOX 
    #define WC_LISTBOX              "ListBox" 
    #endif #ifndef WC_COMBOBOX 
    #define WC_COMBOBOX            "ComboBox" 
    #endif #ifndef WC_SCROLLBAR 
    #define WC_SCROLLBAR            "ScrollBar" 
    #endif 
    #ifndef WC_LINK 
    #define WC_LINK                L"SysLink" 
    #endif #ifndef RT_MANIFEST 
    #define RT_MANIFEST            24 
    #endif
      

  2.   


    直接在stdafx.h中
    #include <commctrl.h>
      

  3.   

    已包含#include <commctrl.h>
    把二楼的代码粘贴过去,解决。结贴。