猿问

什么鬼,哪里错了,求大神解释!万分感谢!


#define _AFXDLL

#include<afxwin.h>

class Cex05Window:public CFrameWnd

{

CStatic* cs;

public:

Cex05Window();

};

Cex05Window::Cex05Window()

{

Create(NULL,"ex05",WS_OVERLAPPEDWINDOW,CRect(100,100,500,300));

       cs=new CStatic();

cs->Create("欢迎使用vs2010!",WS_CHILD|WS_VISIBLE|SS_CENTER,CRect(50,50,300,100),this);

}

class Cex05App:public CWinApp

{

public:

Cex05App(){};

public:

virtual BOOL InitInstance();

};

BOOL Cex05App::InitInstance()

{

CWinApp::InitInstance();

        m_pMainWnd=new Cex05Window();

m_pMainWnd->ShowWindow (m_nCmdShow);

        MessageBox(0,"请点击确定按钮","欢迎使用vs2010!",0);

       return FALSE;

}

Cex05App MyApp;

_我也很绝望可还得继续学呀_0
浏览 1054回答 1
1回答
随时随地看视频慕课网APP
我要回答