This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / VC高手请进,一个简单的问题先谢各位大虾。
我用VC6.0定义了一个MFC application (dialog 模式)。 在dialog中定义了一个button, button内的程序如下:
INPUT input[4];
input[0].type = INPUT_MOUSE;
....
编译时报错, 说 "INPUT: undeclared identifier".
实际上INPUT是 windows 定义的一个structure, 可以看MSDN。 它是“Declared in Winuser.h, include Windows.h”, 我尝试了加入语句"include "windows.h", 但还是编译通不过。 请问我改怎么做才可以让程序认可INPUT, 编译通过, 非常感谢!
有点急, 望各位高手指点!
-xiao_niuniu(niuniu);
2003-11-16
{489}
(#1467947@0)
-
include "Windows.h"
大小写?瞎掰的。
-exception(违例);
2003-11-16
(#1468039@0)
-
It is declared in "winuser.h". try this.I guess you may not use this struct. The INPUT structure is used by SendInput to synthesize keystrokes, mouse motions, and button clicks.(quote from MSDN). I am not sure, but I never see this struct used in any program.
-buaa(buaa);
2003-11-16
{219}
(#1468302@0)