有几个API无论我怎么作VC6.0都说没有定义,大家帮忙看看吧以下是报错信息
error C2065: 'CreateJobObject' : undeclared identifier
error C2440: 'initializing' : cannot convert from 'int' to 'void *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
error C2065: 'AssignProcessToJobObject' : undeclared identifier
error C2065: 'TerminateJobObject' : undeclared identifier我要崩溃了。

解决方案 »

  1.   

    Requires Windows XP or Windows 2000 Professional.你需要修改版本的那个宏,一般在stdafx.h中
      

  2.   

    这些函数是WIN2000以后才有的,VC里面没有这些函数的定义,你可以自己定义出函数的类型,程序中LoadLibrary("Kernel32.dll)然后GetProcAddress,再来调用。
      

  3.   

    #define _WIN32_WINNT 0x0500
    #include "windows.h"
    #pragma comment(lib,"Kernel32.lib")上面的我都作了,VC6还是说无定义。更奇怪的是,同样的代码,我单独拿出来编译运行的实验代码一点问题都没,可是放在大工程里就编译不过去,我要疯了。
      

  4.   

    问题我自己解决了,不过还是要感谢诸位的帮助。如果哪位朋友还有和我同样的问题,来看这篇文章吧。http://blog.csdn.net/yxyhack/archive/2008/01/24/2063648.aspx