创建一个Direct3D设备g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,
intmain(intargc,char*argv[]){WinMain(GetModuleHandle(0),NULL,NULL,0);return0;}//创建程序的窗口HWNDhWnd=CreateWindow("DXProject1","www.andypike.com:Tutorial1",WS_OVERLAPPEDWINDOW,50,50,500,500,GetDesktopWindo