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:
Julian Smart
2000-07-26 12:40:49 +00:00
parent 1126585b76
commit 031dfec8d4
26 changed files with 393 additions and 10 deletions

View File

@@ -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;
}
}