Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by maloninc, Thu Jul 28 03:25:05 2005 UTC revision 1.2 by maloninc, Fri Jul 29 03:07:53 2005 UTC
# Line 3  Line 3 
3  #include <wx/wx.h>  #include <wx/wx.h>
4  #include <wx/image.h>  #include <wx/image.h>
5  #include <wx/snglinst.h>  #include <wx/snglinst.h>
6    #include "mnDef.h"
7  #include "mnFrame.h"  #include "mnFrame.h"
8  #include "mnController.h"  #include "mnController.h"
9    
 #define MY_APP  "MalonNote"  
10    
11  class mnApp: public wxApp {  class mnApp: public wxApp {
12  public:  public:
# Line 25  static wxLocale locale(wxLANGUAGE_DEFAUL Line 25  static wxLocale locale(wxLANGUAGE_DEFAUL
25  bool mnApp::OnInit()  bool mnApp::OnInit()
26  {  {
27    
28          const wxString appName = wxString::Format(wxT(MY_APP) wxT("-%s"), wxGetUserId().c_str());          const wxString appName = wxString::Format(wxT(MN_APP_NAME) wxT("-%s"), wxGetUserId().c_str());
29    
30      m_checker = new wxSingleInstanceChecker(appName);      m_checker = new wxSingleInstanceChecker(appName);
31      if ( m_checker->IsAnotherRunning() ){      if ( m_checker->IsAnotherRunning() ){

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26