Question: App.h #pragma once #ifndef APP_H #define APP_H #include wx/wx.h #include MainWindow.h class App : public wxApp { private: MainWindow* mainWindow; public: App(); ~App(); virtual bool
App.h #pragma once #ifndef APP_H #define APP_H #include "wx/wx.h" #include "MainWindow.h" class App : public wxApp { private: MainWindow* mainWindow; public: App(); ~App(); virtual bool OnInit(); }; #endif App.cpp #include "App.h" wxIMPLEMENT_APP(App); App::App() { } App::~App() { } bool App::OnInit() { mainWindow = new MainWindow("Game of Life", wxPoint(0, 0), wxSize(200, 200)); mainWindow->Show(true); return true; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
