[英]Remove rct1 macro from codebase in microsoft visual studio 10
I'm porting an application from Linux to Windows, and one of my variables, 'rct1', seems to clash with a macro that is coming from somewhere in Windows.我正在将一个应用程序从 Linux 移植到 Windows,我的一个变量“rct1”似乎与来自 Windows 某处的宏发生冲突。 I can't find any information on this - is there a way to disable this macro being defined?
我找不到任何关于此的信息 - 有没有办法禁用这个正在定义的宏?
It's in Dlgs.h
in the Windows SDK.它位于
Dlgs.h
SDK 的 Dlgs.h 中。
So add #define WIN32_LEAN_AND_MEAN
before all #include <windows.h>
so you don't bring in Dlgs.h
.所以在所有
#include <windows.h>
之前添加#define WIN32_LEAN_AND_MEAN
,这样你就不会引入Dlgs.h
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.