main() is necessary
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 2 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:kronecker (等级:2 - 初出茅庐,发帖:112) 发表:2003-06-18 20:26:31  楼主  关注此帖评分:
是不是所以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...
Put your OWN COOL signature here!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:kronecker (等级:2 - 初出茅庐,发帖:112) 发表:2003-06-18 21:12:03  2楼
thanks for your replyit is a source code. The problem is that when I search for main() in the whole directory of the project, none is returned. That's why i am comfused. So any more suggestions on how I can understand the codes? By the way, it is a 100M big proj:)
basiclly i dunno
first make sure your souce code is complete. Because from what you've posted, the souces seems incomplete, e.g. the default constructor is empty and desctructor is missing. Even if you have the main function, it still doesn't compile. And i don't think one would have the patience to finish the 100M+ mass.

depending on your programming environment, the main function may have different forms. In m$ visual c++, windows application has main() called WinMain(), if my memory serves me correctly.

maybe you search for main and Main in all your text files.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 社会百科 | 返回上一页 | 本主题共有 2 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码