Don't forget to check: ::wxEntry() documentation. I'm maintaining an MFC application and I will try to convert it to wxWidgets-only in the future.
So far, what I've had to do is:
non-MFC specific:
1. Create my app class and put the DECLARE_APP() macro in the header file for that class.
2. Put the IMPLEMENT_APP_NOMAIN() macro in my app class' source file (.cpp file).
3. Override wxApp::OnInit(), etc.
MFC app class:
1. Override CWinApp::InitInstance() and CWinApp::ExitInstance() to initialize/uninitialize wxWidgets:
a. Add the call to ::wxEntry() in this CMyApp::InitInstance() (as in the wx/app.h comment just before the IMPLEMENT_APP_NOMAIN() macro). I'm using CWinApp data members m_hInstance, m_hPrevInstance, m_lpCmdLine and m_nCmdShow to call ::wxEntry().
b. Call wxGetApp().OnExit() and wxApp::CleanUp() in CMyApp::ExitInstance() (as in ::wxEntry() documentation).
2. Override CWinApp::PreTranslateMessage() to call wxGetApp().ProcessMessage() (as in wxApp::ProcessMessage() documentation).
I'll probably update the Wiki with this, as it's all spread in the official documentation.
Please note that this is *not* final. However, my application seems to be working allright so far
