各位知不知道这究竟是个什么错误,是由于什么原因引起的,如何解决呢?
error C1083: Cannot open precompiled header file: 'Debug/SoundKeyboard.pch': No such file or directory

解决方案 »

  1.   

    解决的方法就是rebuild all原因大概是因为vc检测到某些信息有变化了,和上次保存的不一样。
    比如你的工程目录是从别的地方考过来的。
      

  2.   

    谢谢了!
    我重建了一下,好像是的。
    但是不知道为什么,我设置钩子的函数竟然不认识了,具体错误如下:
    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);
    请问这是怎么回事啊?是头文件少什么东西吗?但我的头文件放到一个相同功能的编译好的程序里是好的啊。
      

  3.   

    KeyboardProc怎么写的?是类成员函数么?
      

  4.   

    什么static?是函数还是把某个变量?hHook我是声明的static变量