fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.
原程序如下:
#include "stdafx.h"
#include" windows.h"
#include"process.h"
#include "iostream.h" 
DWORD WINAPI MyThread(void *p)
{   
cout<<"My Thread ID:"<<GetCurrentThreadId()      <<endl;
return 3;
}
int main(int argc,char* argv[])
{  DWORD dw;
   HANDLE handle;
   
  handle=CreatThread(NULL,0,MyThread,NULL,0,&dw);
Sleep(1000);
GetExitCodeThread(handle,&dw);
cout<<"Thread Exit Code:"<<dw<<endl;
CloseHandle(handle);return 0;