BC++/16-bit support now working, but without resource system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
1577
src/common/resourc2.cpp
Normal file
1577
src/common/resourc2.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -93,10 +93,10 @@ bool wxResourceParseIncludeFile(const wxString& f, wxResourceTable *table = (wxR
|
||||
|
||||
wxResourceTable *wxDefaultResourceTable = (wxResourceTable *) NULL;
|
||||
|
||||
static char *wxResourceBuffer = (char *) NULL;
|
||||
static long wxResourceBufferSize = 0;
|
||||
static long wxResourceBufferCount = 0;
|
||||
static int wxResourceStringPtr = 0;
|
||||
char *wxResourceBuffer = (char *) NULL;
|
||||
long wxResourceBufferSize = 0;
|
||||
long wxResourceBufferCount = 0;
|
||||
int wxResourceStringPtr = 0;
|
||||
|
||||
void wxInitializeResourceSystem()
|
||||
{
|
||||
@@ -1423,6 +1423,9 @@ wxFont wxResourceInterpretFontSpec(wxExpr *expr)
|
||||
return font;
|
||||
}
|
||||
|
||||
// Separate file for the remainder of this, for BC++/Win16
|
||||
|
||||
#if !(defined(__BORLANDC__) && defined(__WIN16__))
|
||||
/*
|
||||
* (Re)allocate buffer for reading in from resource file
|
||||
*/
|
||||
@@ -2895,4 +2898,7 @@ wxControl *wxWindow::CreateItem(const wxItemResource *resource, const wxItemReso
|
||||
#pragma warning(default:4706) // assignment within conditional expression
|
||||
#endif // VC++
|
||||
|
||||
#endif
|
||||
// BC++/Win16
|
||||
|
||||
#endif // wxUSE_WX_RESOURCES
|
||||
|
@@ -4,22 +4,7 @@
|
||||
!include $(WXDIR)\src\makebcc.env
|
||||
|
||||
WXLIB = $(WXDIR)\lib\wx.lib
|
||||
LIBS=$(WXLIB) mathwl cwl import
|
||||
|
||||
!ifndef FINAL
|
||||
FINAL=0
|
||||
!endif
|
||||
|
||||
!if "$(FINAL)" == "0"
|
||||
LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
||||
OPT = -Od
|
||||
DEBUG_FLAGS= -v
|
||||
!else
|
||||
LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
||||
OPT = -O2
|
||||
DEBUG_FLAGS =
|
||||
!endif
|
||||
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
|
||||
LIBS=$(WXLIB) mathwl cwl import ole2w16
|
||||
|
||||
all: $(TARGET).exe
|
||||
|
||||
|
@@ -557,7 +557,7 @@ int wxEntry(WXHINSTANCE hInstance,
|
||||
int nCmdShow,
|
||||
bool enterLoop)
|
||||
{
|
||||
#ifndef __WXDEBUG__ // take everything into a try-except block in release build
|
||||
#if !defined(__WXDEBUG__) && !defined(__BORLANDC__) // take everything into a try-except block in release build
|
||||
try {
|
||||
#endif
|
||||
|
||||
@@ -627,7 +627,7 @@ int wxEntry(WXHINSTANCE hInstance,
|
||||
wxApp::CleanUp();
|
||||
|
||||
return retValue;
|
||||
#ifndef __WXDEBUG__ // catch exceptions only in release build
|
||||
#if !defined(__WXDEBUG__) && !defined(__BORLANDC__) // catch exceptions only in release build
|
||||
}
|
||||
except ( EXCEPTION_EXECUTE_HANDLER ) {
|
||||
/*
|
||||
|
@@ -115,6 +115,7 @@ COMMONOBJS = \
|
||||
$(MSWDIR)\postscrp.obj \
|
||||
$(MSWDIR)\prntbase.obj \
|
||||
$(MSWDIR)\resource.obj \
|
||||
$(MSWDIR)\resourc2.obj \
|
||||
$(MSWDIR)\tbarbase.obj \
|
||||
$(MSWDIR)\tbarsmpl.obj \
|
||||
$(MSWDIR)\textfile.obj \
|
||||
@@ -188,7 +189,6 @@ MSWOBJS = \
|
||||
$(MSWDIR)\gdiobj.obj \
|
||||
$(MSWDIR)\helpwin.obj \
|
||||
$(MSWDIR)\icon.obj \
|
||||
$(MSWDIR)\imaglist.obj \
|
||||
$(MSWDIR)\iniconf.obj \
|
||||
$(MSWDIR)\joystick.obj \
|
||||
$(MSWDIR)\listbox.obj \
|
||||
@@ -236,6 +236,7 @@ MSWOBJS = \
|
||||
# $(MSWDIR)\uuid.obj
|
||||
# $(MSWDIR)\droptgt.obj \
|
||||
# $(MSWDIR)\dropsrc.obj \
|
||||
# $(MSWDIR)\imaglist.obj \
|
||||
# $(MSWDIR)\notebook.obj \
|
||||
# $(MSWDIR)\listctrl.obj \
|
||||
# $(MSWDIR)\tabctrl.obj \
|
||||
@@ -344,13 +345,13 @@ $(MSWDIR)\gdiobj.obj: $(MSWDIR)\gdiobj.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\icon.obj: $(MSWDIR)\icon.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\imaglist.obj: $(MSWDIR)\imaglist.$(SRCSUFF)
|
||||
# $(MSWDIR)\imaglist.obj: $(MSWDIR)\imaglist.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\joystick.obj: $(MSWDIR)\joystick.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\listbox.obj: $(MSWDIR)\listbox.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\listctrl.obj: $(MSWDIR)\listctrl.$(SRCSUFF)
|
||||
# $(MSWDIR)\listctrl.obj: $(MSWDIR)\listctrl.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\main.obj: $(MSWDIR)\main.$(SRCSUFF)
|
||||
|
||||
@@ -424,7 +425,7 @@ $(MSWDIR)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\timer.obj: $(MSWDIR)\timer.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\treectrl.obj: $(MSWDIR)\treectrl.$(SRCSUFF)
|
||||
# $(MSWDIR)\treectrl.obj: $(MSWDIR)\treectrl.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)
|
||||
|
||||
@@ -499,6 +500,8 @@ $(MSWDIR)\prntbase.obj: $(COMMDIR)\prntbase.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\resource.obj: $(COMMDIR)\resource.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\resourc2.obj: $(COMMDIR)\resourc2.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\tbarbase.obj: $(COMMDIR)\tbarbase.$(SRCSUFF)
|
||||
|
||||
$(MSWDIR)\tbarsmpl.obj: $(COMMDIR)\tbarsmpl.$(SRCSUFF)
|
||||
|
Reference in New Issue
Block a user