各位知不知道这究竟是个什么错误,是由于什么原因引起的,如何解决呢?
error C1083: Cannot open precompiled header file: 'Debug/SoundKeyboard.pch': No such file or directory
error C1083: Cannot open precompiled header file: 'Debug/SoundKeyboard.pch': No such file or directory
调试欢乐多
比如你的工程目录是从别的地方考过来的。
我重建了一下,好像是的。
但是不知道为什么,我设置钩子的函数竟然不认识了,具体错误如下:
error C2440: 'type cast' : cannot convert from '' to 'long (__stdcall *)(int,unsigned int,long)'
None of the functions with this name in scope match the target type对应的语句:
hHook = SetWindowsHookEx(WH_KEYBOARD,(HOOKPROC)KeyboardProc,NULL,AfxGetThread()->m_nThreadID);
请问这是怎么回事啊?是头文件少什么东西吗?但我的头文件放到一个相同功能的编译好的程序里是好的啊。