SendMessage(GetDlgItem(hwndDlg,IDC_LIST_ASSOCIATE),LVM_INSERTCOLUMN,(WPARAM)0, TRUE,LONG(TextTemp));,是一个DLL程序,为什么提示: error C2065: 'LVM_INSERTCOLUMN' : undeclared identifier应该如何做

解决方案 »

  1.   

    #include <afxcmn.h>Message InformationHeader commctrl.h 
    Minimum operating systems Windows NT 3.51, Windows 95 
      

  2.   

    哇,都用API啊, 厉害啊。
    我怎么觉得你的参数多啊?
      

  3.   

    加入后提示: fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>,我删除#include <windows.h>,后一堆错误
    wa_ipc.h(450) :error C2146: syntax error : missing ';' before identifier 'parent'
    wa_ipc.h(450) : error C2501: 'HWND' : missing storage-class or type specifiers
    wa_ipc.h(450) : error C2501: 'parent' : missing storage-class or type specifiers
    该处为
    typedef struct {
      HWND parent;
      char *filename;
    } infoBoxParam;是winamp提供的SDK中的
      

  4.   

    把你的stdafx.h帖也来,我看看你怎么包含那些头文件。
      

  5.   

    刚刚我看到这样一篇文章:由于MFC中的辅助类,如CFileDialog,CFileFind,CString等使用起来非常的方便如果用API来完成相应的工作,则需要自己完成大量的重复工作,使用MFC的辅助类可以节省大量的开发时间,具体方法如下: 1.加入相应的头文件 由于在SDK程序中一定要包含windows.h头文件,所以在使用MFC中的类时,如加入afx.h一类的头文件会有一个提示与windows.h相冲突,解决的办法是,去掉windows.h,然后在所有的.h文件前加入#include "stdafx.h" #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 
    #include <afxwin.h> // MFC core and standard components 
    #include <afxext.h> // MFC extensions 
    #include <afxdisp.h> // MFC Automation classes 
    #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls 
    #ifndef _AFX_NO_AFXCMN_SUPPORT 
    #include <afxcmn.h> // MFC support for Windows Common Controls 
    #endif // _AFX_NO_AFXCMN_SUPPORT 注意一定要在所有的头文件之前加入这几行,而起顺序最好不要改变,否则会有大量的错误提示。 2.更改编译设置 在Project->Setting->General中选Use MFC in a Shared DLL或者Use MFC in static Library,并把project->Setting->C/C++ 中的Use runing-time library 由Single-Threaded改为相应的Multithreaded。 可以找不到Use runing-time library 
      

  6.   

    我知道,是头文件#include <Shlobj.h>,编译通过了,如何设置标题?