不能通过编译,在VC6.0中如何设置 /MT ?
#include "iostream.h"
#include <windows.h>
#include <process.h>
unsigned _stdcall myfunc(void *p);
void main(void)
{
unsigned long thd;
unsigned tid;
thd=_beginthreadex(NULL,0,myfunc,0,0,&tid);
if(thd!=NULL)
{
CloseHandle(thd);
}
}
unsigned _stdcall myfunc(void *p)
{
cout<<"Hello!";
}
不能通过编译,在VC6.0中如何设置 /MT ?