我用vc的wizard做了一个win32 application程序,想用_beginthreadex()开始一个新线程。经查msdn得知需要#include"process.h",可即使这样做了,也还是不能用这个函数啊。错误提示信息为:_beginthreadex() undeclare,为什么呀?而同样是按这样的一个步骤,在一个基于mfc的程序中就可用_beginthreadex()这个函数,为什么呢?怎么解决?
调试欢乐多
另外如果是win32 application一般用CreateThread();函数来创建线程
如果象你这样弄,也可以
在Project Settings下,选择「C/C++」,然後在Category下拉框中选择Code Generation。在Use Run-Time Library下拉框中,Single-Threaded改为Debug Multithreaded试试
这是debug版本!这么改!