定义注册窗口类
// myword.cpp : Defines the entry point for the application.//
#include "stdafx.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
return 0;
}
#include "stdafx.h"
LRESULTCALLBACK WnProc(HWND,UINT,WPARAML,LPARAM);
char szProcName[]="MYSDKHelloWordsmpl";
WBDCLASS wcMyApp;
wcMyApp.lpszClassName=szProcName;
wcMyApp.hInstance=hInst;
wcMyApp.lpfnWndProc=WndProc;
wcMyApp.hCursor=LoadCursor(NULL,IDC_ARROW);
wcMyApp.hIcon=0;
wcMyApp.lpszMenuName=NULL;
wcMyApp.hbrBackground=(HBRUSH)(COLOR_WINDOW+1);
wcMyApp.style=CS_HREDRAW|CS_VREDRAW;
wcMyApp.cbClsExtra=0;
wcMyApp.cbWndExtra=0;
if(!=RegisterClass(&wcMyApp))
return 0;