编写一个Windows窗口应用程序
使用VS2008,64位编译器。
- 1.打开VS2008,新建一个空项目
- 2.在项目中添加.cpp文件
- 3.输入代码如下
#include <windows.h>
#include <stdio.h>
LRESULT CALLBACK WinHuProc(
HWND hwnd, // handle to window
UINT uMsg, // message identifier
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance,