00001 /*************************************************************** 00002 * Name: N1568DemoApp.cpp 00003 * Purpose: Code for Application Class 00004 * Author: NDA (nicola.dellamico@ndatech.it) 00005 * Created: 2008-07-29 00006 * Copyright: CAEN S.p.A (www.caen.it) 00007 * License: 00008 **************************************************************/ 00009 00010 #ifdef WX_PRECOMP 00011 #include "wx_pch.h" 00012 #endif 00013 #include <wx/filename.h> 00014 00015 #ifdef __BORLANDC__ 00016 #pragma hdrstop 00017 #endif //__BORLANDC__ 00018 00019 #include "N1568DemoApp.h" 00020 #include "N1568DemoMain.h" 00021 00022 IMPLEMENT_APP(N1568DemoApp); 00023 00024 bool N1568DemoApp::OnInit() { 00025 wxImage::AddHandler(new wxPNGHandler); 00026 wxFileName fn( N1568DemoFrame::GetExecutablePath()); 00027 wxFileName::SetCwd( fn.GetPath()); 00028 00029 N1568DemoFrame* frame = new N1568DemoFrame(0L); 00030 00031 frame->Show(); 00032 00033 return true; 00034 }
1.5.6