-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
35 lines (28 loc) · 870 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*****************************************************************************
* Coin Counter - 1st project "Visão por Computador" @ FEUP
* Authors:
* - Diogo Costa (costa.h4evr@gmail.com)
* - Nuno Silva (nufil.ss@gmail.com)
*
* License: MIT
*****************************************************************************/
#include <wx/wx.h>
#include "frmMain.h"
/**
The application class, responsable for loading the interface.
*/
class CoinCounterApp: public wxApp {
/** Initialize the interface. */
virtual bool OnInit();
};
IMPLEMENT_APP(CoinCounterApp)
/** Initialize the interface. */
bool CoinCounterApp::OnInit() {
// Create a new main form
frmMain *frame = new frmMain(NULL);
// Show the form
frame->Show(true);
// Set as the main window for the application
SetTopWindow(frame);
return true;
}