WIN32 compilation of wxrc, wxrcedit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,16 +30,21 @@
|
||||
#include "wx/xml/xml.h"
|
||||
#include "wx/ffile.h"
|
||||
|
||||
|
||||
/*
|
||||
#if wxUSE_GUI
|
||||
#error "You must compile the resource compiler with wxBase!"
|
||||
#endif
|
||||
|
||||
*/
|
||||
|
||||
class XmlResApp : public wxApp
|
||||
{
|
||||
public:
|
||||
|
||||
#if wxUSE_GUI
|
||||
bool OnInit();
|
||||
#else
|
||||
virtual int OnRun();
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
@@ -58,7 +63,11 @@ private:
|
||||
|
||||
IMPLEMENT_APP(XmlResApp)
|
||||
|
||||
#if wxUSE_GUI
|
||||
bool XmlResApp::OnInit()
|
||||
#else
|
||||
int XmlResApp::OnRun()
|
||||
#endif
|
||||
{
|
||||
static const wxCmdLineEntryDesc cmdLineDesc[] =
|
||||
{
|
||||
@@ -87,11 +96,19 @@ int XmlResApp::OnRun()
|
||||
retCode = 0;
|
||||
ParseParams(parser);
|
||||
CompileRes();
|
||||
#if wxUSE_GUI
|
||||
return FALSE;
|
||||
#else
|
||||
return retCode;
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
#if wxUSE_GUI
|
||||
return FALSE;
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user