#include "wx/wx.h"
#include "ContextFrm.h"
#include <iostream>
class App :public wxApp {
public:
int argc;
char** argv;
App(int _argc, char** _argv):argc(_argc), argv(_argv)
{
std::cout << "cmd:" << argc << ","<<argv[0]<<"\n";
}
virtual bool OnInit()
{
ContextFrm *frame = new ContextFrm("Test");
frame->Show();
return true;
}
};
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) // 设置入口地址,管黑框
int main(int argc,char** argv)
{
wxApp* pApp = new App(argc,argv);
wxApp::SetInstance(pApp);
wxEntry(argc, argv);
return 0;
}