Advertisement
Guest User

Untitled

a guest
Jul 10th, 2012
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. class App : public wxApp {
  2.     public:
  3.         virtual bool OnInit(void);
  4.         virtual int OnRun(void);
  5.         virtual int OnExit(void);
  6. };
  7. bool App::OnInit(void) {
  8.     _CrtSetDbgFlag(_CrtSetDbgFlag(0)|_CRTDBG_LEAK_CHECK_DF);
  9.  
  10.     volatile int* ints = new int[64];
  11.  
  12.     return wxApp::OnInit();
  13. }
  14. int App::OnRun(void) {
  15.     //return wxApp::OnRun();
  16.     return EXIT_SUCCESS;
  17. }
  18. int App::OnExit(void) {
  19.     return wxApp::OnExit();
  20. }
  21.  
  22. IMPLEMENT_APP(App)
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement