#include "afxwin.h"
class myapp:public CWinApp
{
public:
BOOL InitInstance()

{

CFrameWnd *Frame=new CFrameWnd();
m_pMainWnd=Frame;
Frame->Create(NULL,"HELLO");
Frame->ShowWindow(SW_SHOW);
        
return true;
}
};
myapp a_app;
刚学VC不久,实在是弄不明白了,编译器提示说
error C2555: 'myapp::InitInstance': overriding virtual function return type differs and is not covariant from 'CWinApp::InitInstance' d:\myproject\mypro.cpp
我用的是VC2005 Team版的
谢谢大家