#include <afxwin.h> #define p public class M:p CFrameWnd{p:M(){Create(0,"");}DECLARE_MESSAGE_MAP()};class A:p CWinApp{p:BOOL InitInstance(){M*w=new M;w->ShowWindow(m_nCmdShow);m_pMainWnd=w;return 1;}};BEGIN_MESSAGE_MAP(M,CFrameWnd)END_MESSAGE_MAP();A a;
#include <a> #define p public class M:p CFrameWnd{p:M(){Create(0,"");}DECLARE_MESSAGE_MAP()};class A:p CWinApp{p:int InitInstance(){(m_pMainWnd=new M)->ShowWindow(m_nCmdShow);return 1;}};BEGIN_MESSAGE_MAP(M,CFrameWnd)END_MESSAGE_MAP();A a;