源码如下:
#include <afxwin.h>
class CMinApp:pubilc CWinApp
{public:virtual BOOL InitInstance();}
BOOL CMinApp::InitInstance()
{CFrameWnd * pFrame=new CFrameWnd;
 pFrame->Create(0,_T(A Minimal MFC Programe")); 
 pFrame->Show Window(SW_SHOWMAXIMIZED);
 pFrame->UpdateWindow();
 AfxGetApp()->m_pMainWnd=pFrame;
 return TURE;

CMinApp MyApp;头文件改成stdafx.h也不行,原来一个错,改过之后成6个错了

解决方案 »

  1.   

    This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.
    还有c和c++的混用也可能会有这个问题.
      

  2.   

    你的WinMain() 函数没有吧!
    我忙你调调看!
      

  3.   

    首先我想说的是,你打字很粗心!
    第二行的pubilc 应该是 public类定义完了一般要加一个逗号;这行少一个引号: 
    pFrame->Create(0,_T(/*in here*/A  Minimal  MFC  Programe"));  pFrame->Show  Window(SW_SHOWMAXIMIZED); 
    show 和 window 之间没有空格我改过之后的是:
    #include  <afxwin.h> class  CMinApp : public  CWinApp
    {
    public:
    virtual  BOOL  InitInstance();
    };BOOL  CMinApp::InitInstance() 
    {
    CFrameWnd  *pFrame=new  CFrameWnd; 
    pFrame->Create(0,_T("A  Minimal  MFC  Programe"));  
    pFrame->ShowWindow(SW_SHOWMAXIMIZED); 
    pFrame->UpdateWindow(); 
    AfxGetApp()->m_pMainWnd=pFrame; 
    return  TRUE; 
    }CMinApp  MyApp; 
     
    但这程序还是不能运行的,因为他没有主函数!