创建一个新的工程:
一、包含的类:
CxxxApp类
CxxxDoc类
CxxxView类
二、WinMain
在安装目录下的源代码中:APPMODUL.CPP 中,程序会首先进入WinMain中
#define _tWinMain WinMian
extern "C" int WINAPI
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
//………………………………………………………………1………………………………………………………………………………………………//
1.theApp 全局对象(MFC中的类是如何与WinMain函数关联的呢)
执行顺序???
1.1先定义一个&#x