hoho
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 1 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:hula (等级:7 - 出类拔萃,发帖:3686) 发表:2003-06-18 21:57:51  楼主  关注此帖评分:
是不是所以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.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 社会百科 | 返回上一页 | 本主题共有 1 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码