]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/makegen/makegen.cpp
Added wxMouseCaptureChangedEvent. Added some missing Capture related methods.
[wxWidgets.git] / utils / makegen / makegen.cpp
index 5013ffdfde1f58fe2870b038bf0038c9d4883023..7db8b972a7fae3e28ebcb0d0f999433d3ce72c06 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#include <wx/string.h>
-#include <wx/file.h>
-#include <wx/ffile.h>
-#include <wx/app.h>
-#include <wx/log.h>
-#include <wx/dir.h>
-#include <wx/textfile.h>
-#include <wx/datetime.h>
-#include <wx/cmdline.h>
+#include "wx/string.h"
+#include "wx/file.h"
+#include "wx/ffile.h"
+#include "wx/app.h"
+#include "wx/log.h"
+#include "wx/dir.h"
+#include "wx/textfile.h"
+#include "wx/datetime.h"
+#include "wx/cmdline.h"
 
 // ----------------------------------------------------------------------------
 // the application class
@@ -81,7 +81,9 @@ bool MakeGenApp::GenerateMakefile(const wxString& filename)
         return FALSE;
     }
 
-    wxFFile fileOut(m_outdir + filename, "w");
+    wxString fileOutName;
+    fileOutName << m_outdir << _T('/') << filename;
+    wxFFile fileOut(fileOutName, "w");
     if ( !fileOut.IsOpened() )
     {
         wxLogError(_T("Makefile '%s' couldn't be generated."), filename.c_str());
@@ -90,7 +92,7 @@ bool MakeGenApp::GenerateMakefile(const wxString& filename)
     }
 
     wxLogVerbose(_T("Generating '%s' for '%s'..."),
-                 (m_outdir + filename).c_str(), m_progname.c_str());
+                 fileOutName.c_str(), m_progname.c_str());
 
     size_t count = fileIn.GetLineCount();
     for ( size_t n = 0; n < count; n++ )