1
我想使用isKeyLocked函數,但根據微軟的C++示例,我需要使用#using <System.Windows.Forms.dll>
。如果我這樣做,我的程序會引發編譯時錯誤。如何在C++中使用「#using」語句?
Here's the source of the example.
我想使用isKeyLocked函數,但根據微軟的C++示例,我需要使用#using <System.Windows.Forms.dll>
。如果我這樣做,我的程序會引發編譯時錯誤。如何在C++中使用「#using」語句?
Here's the source of the example.
你應該在託管C++模式下進行編譯。
轉到Project Properties
,General
並設置Common Language Runtime support
到/clr
, 或命令行,
cl.exe main.cpp /clr
哪個編譯您使用的? – jzila 2011-12-16 23:08:41