是不是所以C++的PROJ都有main函数?以下是一个SKIN PROJ的主程序,我不知道从何开始,请行家指点!
#include "stdafx.h"
#include "Skin.h"
#include "MainFrm.h"
#include "ChildFrm.h"
#include "SkinDoc.h"
#include "SkinView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSkinApp
BEGIN_MESSAGE_MAP(CSkinApp, CWinApp)
//{{AFX_MSG_MAP(CSkinApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
ON_COMMAND(ID_FILE_NEW, OnFileNew)
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSkinApp construction
CSkinApp::CSkinApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitIn (more...)
hoho
if u don't know what all these things are, go back and read books about windows programming and MFC.
MFC provides a strange and huge framework that encapsulates WinMain or _tWinMain. If u wanna find where WinMain is, please read MFC source code or read the book 《深入浅出MFC》by 侯俊杰(台湾), there are a lot of links where u can download the whole book coz hou sir made it free.
MFC provides a strange and huge framework that encapsulates WinMain or _tWinMain. If u wanna find where WinMain is, please read MFC source code or read the book 《深入浅出MFC》by 侯俊杰(台湾), there are a lot of links where u can download the whole book coz hou sir made it free.
