I am trying to get wxWidgets set up in Visual Studio 2019, as shown in javidx9's video "Cross Platform Graphical User Interfaces in C++". I followed his instructions exactly and was left with one compilation error that reads " 'static_cast': cannot convert from 'wxAppConsole*' to 'cApp*'"
I'm not sure what to do or how to solve this error. Any advice would be appreciated. Thanks.
My "cApp.cpp" is shown below:
Code: Select all
#include "cApp.h"
wxIMPLEMENT_APP(cApp);
cApp::cApp()
{
}
cApp::~cApp()
{
}
bool cApp::OnInit()
{
m_frame1 = new cMain();
m_frame1->Show();
return true;
}