在VC6.0中如何设置 /MT ?

来源:互联网 发布:树和森林的遍历算法 编辑:程序博客网 时间:2024/05/08 07:51

不能通过编译,在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 ?

原创粉丝点击