-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.cpp
40 lines (37 loc) · 879 Bytes
/
App.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
36
37
38
39
40
/***************************************************************
* Name: showpicApp.cpp
* Purpose: Code for Application Class
* Author: xwd ([email protected])
* Created: 2017-07-09
* Copyright: xwd ()
* License:
**************************************************************/
#include "wx_pch.h"
#include "App.h"
#include "include.h"
//(*AppHeaders
#include <wx/image.h>
//*)
IMPLEMENT_APP(showpicApp);
ctb::mySerialPort* const myserialport=new ctb::mySerialPort();;
wxConfig* const myconfig=new wxConfig("PicDisplay");
bool showpicApp::OnInit()
{
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
if ( wxsOK )
{
showdate* Frame = new showdate(0);
Frame->Show();
SetTopWindow(Frame);
}
//*)
return wxsOK;
}
int showpicApp::OnExit()
{
delete myserialport;
delete myconfig;
return 0;
}