e:\电磁仿真\radioplan\colourpopup.h(50): error C2011: “tagMONITORINFO” : “struct”类型重定义
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(10533) : 参见“tagMONITORINFO”的声明
e:\电磁仿真\radioplan\colourpopup.h(57): error C2011: “tagMONITORINFOEXA” : “struct”类型重定义
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(10541) : 参见“tagMONITORINFOEXA”的声明请问这是怎么个问题,
这是我的代码:如下
我只是在成需中加入两个文件,
CJColorPicker.h,CJColorPicker.cpp和ColourPoPup.h,ColourPopup.cpp这个第三方的源码
就出现了上述问题。
typedef HANDLE HMONITOR;typedef struct tagMONITORINFO
{
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO; typedef struct tagMONITORINFOEXA : public tagMONITORINFO
{
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXA,*LPMONITORINFOEXA;typedef MONITORINFOEXA MONITORINFOEX;
typedef LPMONITORINFOEXA LPMONITORINFOEX;typedef BOOL (WINAPI GetMonitorInfo) (HMONITOR, LPMONITORINFOEX);
typedef HMONITOR (WINAPI MonitorFromPoint) (POINT, DWORD);VC
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(10533) : 参见“tagMONITORINFO”的声明
e:\电磁仿真\radioplan\colourpopup.h(57): error C2011: “tagMONITORINFOEXA” : “struct”类型重定义
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinUser.h(10541) : 参见“tagMONITORINFOEXA”的声明请问这是怎么个问题,
这是我的代码:如下
我只是在成需中加入两个文件,
CJColorPicker.h,CJColorPicker.cpp和ColourPoPup.h,ColourPopup.cpp这个第三方的源码
就出现了上述问题。
typedef HANDLE HMONITOR;typedef struct tagMONITORINFO
{
DWORD cbSize;
RECT rcMonitor;
RECT rcWork;
DWORD dwFlags;
} MONITORINFO, *LPMONITORINFO; typedef struct tagMONITORINFOEXA : public tagMONITORINFO
{
CHAR szDevice[CCHDEVICENAME];
} MONITORINFOEXA,*LPMONITORINFOEXA;typedef MONITORINFOEXA MONITORINFOEX;
typedef LPMONITORINFOEXA LPMONITORINFOEX;typedef BOOL (WINAPI GetMonitorInfo) (HMONITOR, LPMONITORINFOEX);
typedef HMONITOR (WINAPI MonitorFromPoint) (POINT, DWORD);VC
解决方案 »
- EnumChildWindows如何用在对话框结构的程序函数中?
- 找不到strlib.h是怎么回事?
- 请问:关于读数据库中数据为乱码的问题?在线等,谢谢
- 怎么改变TextOut和DrawText的输出字体大小????
- 非常郁闷的问题: ADO连Access在Debug下没问题,Release下面出现"[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动
- 串口通行问题,请高手帮忙!谢谢
- 将OPENGL转换到WINDOWS中有没有方法?
- 用自己的网站测ISAPI通配符发生丢失现象
- 如何用CList构造一个链表?
- 程序打包后功能消失掉一些
- 网络协议分析
- VC如何快速构建系统目录树
#if !defined(AFX_COLOURPOPUP_H__D0B75902_9830_11D1_9C0F_00A0243D1382__INCLUDED_)
#define AFX_COLOURPOPUP_H__D0B75902_9830_11D1_9C0F_00A0243D1382__INCLUDED_#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000// ColourPopup.h : header file
头文件中放置重复编译的代码,
求教大声