如何#include< windows.h>两次或更多次? [英] How to #include <windows.h> two or more times?
本文介绍了如何#include< windows.h>两次或更多次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以allah的名义
大家好
i需要创建以下课程:
class my_class: public CWnd {
public :
private :
}
你知道afndwin.h中的CWnd已经开始了
当我#include< afxwin.h>在我的项目中,将发生以下错误:
C:\Program Files(x86)\ Microsoft Visual Studio 9.0 \\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ MFC应用程序不得#include< windows.h>
如何解决?
解决方案
Google也是你的朋友,不仅仅是我的朋友!
方法1: http://msdn.microsoft.com/en-us/library/y0tzt8e0.aspx [ ^ ]
方法2:致命错误C1189:#error:WINDOWS.H已包含在内。 MFC应用程序不得#include [ ^ ]
in the name of allah
hi everyone
i need to create below class:
class my_class : public CWnd{
public:
private:
}
and you know the "CWnd" is delcared in "afxwin.h"
and when i #include <afxwin.h> in my prject, the below error will happened:
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
how can i solve it?
解决方案
Google is your friend too, not only mine!
Approach 1: http://msdn.microsoft.com/en-us/library/y0tzt8e0.aspx[^]
Approach 2: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include[^]
这篇关于如何#include< windows.h>两次或更多次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文