高手帮我改正一下!!我想生成我的第一个商品程序..
#include <afxwin.h> // MFC core and standard components
#include <afxext.h>
class myApp2 : public CWinApp
{
public:
BOOL InitInstance();
};class myMainFrame : public CFrameWnd
{
public:
myMainFrame();
};
myApp2 theApp(_T("myApp2"));BOOL myApp2::InitInstance()
{ LoadStdProfileSettings();
myMainFrame *mm = new myMainFrame;
m_pMainWnd = mm;
m_pMainWnd->ShowWindow(SW_SHOWNORMAL);
m_pMainWnd->UpdateWindow();
return true;}
#include <afxwin.h> // MFC core and standard components
#include <afxext.h>
class myApp2 : public CWinApp
{
public:
BOOL InitInstance();
};class myMainFrame : public CFrameWnd
{
public:
myMainFrame();
};
myApp2 theApp(_T("myApp2"));BOOL myApp2::InitInstance()
{ LoadStdProfileSettings();
myMainFrame *mm = new myMainFrame;
m_pMainWnd = mm;
m_pMainWnd->ShowWindow(SW_SHOWNORMAL);
m_pMainWnd->UpdateWindow();
return true;}
{LoadStdProfileSettings();
myMainFrame mm
m_pMainWnd = &mm;mm.DoModal();
return true;}
m_pMainWnd->Create(...);
m_pMainWnd->ShowWindow(SW_SHOWNORMAL);
m_pMainWnd->UpdateWindow();