是不是所以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...)
main() is necessary
main() is necessary.
your program appears to me more like a source file, in which holds some class member definitions.
and the implementation seems unfinished. that's probably why you can't find main. hehe...
your program appears to me more like a source file, in which holds some class member definitions.
and the implementation seems unfinished. that's probably why you can't find main. hehe...