Mercurial > mercurial > hgweb_mover2.cgi
comparison src/main.cpp @ 21:c540dc3eabe5 v2.2dev
add listctrl-dir
author | pyon@macmini |
---|---|
date | Wed, 26 Oct 2011 20:40:53 +0900 |
parents | d10eafafe31f |
children | 405e08552527 |
comparison
equal
deleted
inserted
replaced
20:d10eafafe31f | 21:c540dc3eabe5 |
---|---|
1 // Filename : main.cpp | 1 // Filename : main.cpp |
2 // Last Change: 25-Oct-2011. | 2 // Last Change: 26-Oct-2011. |
3 // | 3 // |
4 | 4 |
5 #include "common.h" | 5 #include "common.h" |
6 #include "main.h" | 6 #include "main.h" |
7 #include "myframe.h" | 7 #include "myframe.h" |
91 { | 91 { |
92 wxDateTime now = wxDateTime::Now(); | 92 wxDateTime now = wxDateTime::Now(); |
93 wxTextFile logfile; | 93 wxTextFile logfile; |
94 logfile.Open(wxT("log")); | 94 logfile.Open(wxT("log")); |
95 logfile.Clear(); | 95 logfile.Clear(); |
96 logfile.AddLine( now.Format(wxT("%F %T ")) + wxT("[Application start...]") ); | 96 logfile.AddLine( now.Format(wxT("%Y-%m-%d %H:%M:%S ")) + wxT("[Application start...]") ); |
97 logfile.Write(); | 97 logfile.Write(); |
98 logfile.Close(); | 98 logfile.Close(); |
99 } | 99 } |
100 void MyApp::WriteLog( wxString msg ) | 100 void MyApp::WriteLog( wxString msg ) |
101 { | 101 { |