Some doc fixes; BC++, Watcom C++, Mingw32 fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-03-17 17:59:56 +00:00
parent a37a5a73c5
commit b2cf617cb8
26 changed files with 134 additions and 96 deletions

View File

@@ -112,10 +112,16 @@ bool csApp::OnInit(void)
(void) new wxDocTemplate(m_docManager, "Diagram", "*.dia", "", "dia", "Diagram Doc", "Diagram View", (void) new wxDocTemplate(m_docManager, "Diagram", "*.dia", "", "dia", "Diagram Doc", "Diagram View",
CLASSINFO(csDiagramDocument), CLASSINFO(csDiagramView)); CLASSINFO(csDiagramDocument), CLASSINFO(csDiagramView));
// Create the main frame window // Create the main frame window.
// Note that we use a frame style that doesn't have wxCLIP_CHILDREN in it
// (the default frame style contains wxCLIP_CHILDREN), otherwise the client
// area doesn't refresh properly when we change its position, under Windows.
#define wxDEFAULT_FRAME_STYLE_NO_CLIP \
(wxSYSTEM_MENU | wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION)
csFrame* frame = new csFrame(m_docManager, NULL, -1, "OGL Studio", m_mainFramePos, m_mainFrameSize, csFrame* frame = new csFrame(m_docManager, NULL, -1, "OGL Studio", m_mainFramePos, m_mainFrameSize,
wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL); wxDEFAULT_FRAME_STYLE_NO_CLIP | wxHSCROLL | wxVSCROLL);
// Give it an icon // Give it an icon
frame->SetIcon(wxICON(studio)); frame->SetIcon(wxICON(studio));

View File

@@ -80,6 +80,8 @@ contrib/samples/mmedia/Makefile.in
contrib/samples/stc/Makefile.in contrib/samples/stc/Makefile.in
descrip.mms descrip.mms
lib\vms.opt
lib\vms_gtk.opt
contrib\samples\mmedia\descrip.mms contrib\samples\mmedia\descrip.mms
deliver\wx\src\common\descrip.mms deliver\wx\src\common\descrip.mms
deliver\wx\src\png\scripts\descrip.mms deliver\wx\src\png\scripts\descrip.mms

View File

@@ -163,7 +163,8 @@ OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
default: wx default: wx
wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET) #wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
all: all_libs all_execs all: all_libs all_execs
@@ -367,13 +368,10 @@ $(DEBUG_FLAGS)
$(WIN95FLAG) $(WIN95FLAG)
! $(CFG) ! $(CFG)
$(LNKCFG): makefile.b32 #$(LNKCFG): makefile.b32
copy &&! # copy &&!
-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk #-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
! $(LNKCFG) #! $(LNKCFG)
#-I$(WXDIR)\src\common\wxxpm\libxpm.34b\lib
# -Oxt
clean: $(PERIPH_CLEAN_TARGET) clean: $(PERIPH_CLEAN_TARGET)
-erase $(LIBTARGET) -erase $(LIBTARGET)

View File

@@ -95,7 +95,7 @@ THISDIR = $(WXDIR)\src\msw
# Please set these according to the settings in wx_setup.h, so we can include # Please set these according to the settings in wx_setup.h, so we can include
# the appropriate libraries in wx.lib # the appropriate libraries in wx.lib
USE_CTL3D=1 USE_CTL3D=1
USE_XPM_IN_MSW=0 USE_XPM_IN_MSW=1
PERIPH_LIBS= PERIPH_LIBS=
PERIPH_TARGET= PERIPH_TARGET=
@@ -224,21 +224,17 @@ all_execs:
make -f makefile.bcc all_execs make -f makefile.bcc all_execs
cd $(WXDIR)\src\msw cd $(WXDIR)\src\msw
all_libs:
cd $(WXDIR)\src\msw
make -f makefile.bcc dib fafa gauge hytext itsy prologio rcparser wx wxgraph\
wxstring wxtree mfutils # wxxpm
all_contribs:
cd $(WXDIR)\src\msw
make -f makefile.bcc fafa wxstring itsy gauge # wxxpm
# CONTRIB # CONTRIB
wxxpm: $(CFG) xpm: $(CFG)
cd $(WXDIR)\src\xpm cd $(WXDIR)\src\xpm
make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG) make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
cd $(WXDIR)\src\msw cd $(WXDIR)\src\msw
clean_xpm: $(CFG)
cd $(WXDIR)\src\xpm
make -f makefile.bcc clean
cd $(WXDIR)\src\msw
png: $(CFG) png: $(CFG)
cd $(WXDIR)\src\png cd $(WXDIR)\src\png
make -f makefile.bcc make -f makefile.bcc

View File

@@ -17,7 +17,7 @@ None
\index{wxDragResult}wxDragResult is defined as follows: \index{wxDragResult}wxDragResult is defined as follows:
begin{verbatim} \begin{verbatim}
enum wxDragResult enum wxDragResult
{ {
wxDragError, // error prevented the d&d operation from completing wxDragError, // error prevented the d&d operation from completing

View File

@@ -465,7 +465,7 @@ same thing (i.e. returns the length of the string) except that it returns 0 if
This function returns the translation of string {\it str} in the current This function returns the translation of string {\it str} in the current
\helpref{locale}{wxlocale}. If the string is not found in any of the loaded \helpref{locale}{wxlocale}. If the string is not found in any of the loaded
message catalogs (see \helpref{i18n overview}{internationalization}), the message catalogs (see \helpref{internationalization overview}{internationalization}), the
original string is returned. In debug build, an error message is logged - this original string is returned. In debug build, an error message is logged - this
should help to find the strings which were not yet translated. As this function should help to find the strings which were not yet translated. As this function
is used very often, an alternative syntax is provided: the \_() macro is is used very often, an alternative syntax is provided: the \_() macro is

View File

@@ -48,18 +48,21 @@ No base class
\latexignore{\rtfignore{\wxheading{Members}}} \latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfilector} \membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfilector}
\func{}{wxTempFile}{\void} \func{}{wxTempFile}{\void}
Default constructor - \helpref{Open}{wxtempfileopen} must be used to open the Default constructor - \helpref{Open}{wxtempfileopen} must be used to open the
file. file.
\membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfile} \membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfile}
\func{}{wxTempFile}{\param{const wxString\& }{strName}} \func{}{wxTempFile}{\param{const wxString\& }{strName}}
Associates wxTempFile with the file to be replaced and opens it. You should use Associates wxTempFile with the file to be replaced and opens it. You should use
\helpref{IsOpened}{wxtempfileisopened} to verify if the constructor succeeded. \helpref{IsOpened}{wxtempfileisopened} to verify if the constructor succeeded.
\membersection{wxTempFile::Open}\label{wxtempfileopen} \membersection{wxTempFile::Open}\label{wxtempfileopen}
\func{bool}{Open}{\param{const wxString\& }{strName}} \func{bool}{Open}{\param{const wxString\& }{strName}}
Open the temporary file (strName is the name of file to be replaced), returns Open the temporary file (strName is the name of file to be replaced), returns
@@ -71,16 +74,19 @@ TRUE on success, FALSE if an error occured.
Returns TRUE if the file was successfully opened. Returns TRUE if the file was successfully opened.
\membersection{wxTempFile::Write}\label{wxtempfilewrite} \membersection{wxTempFile::Write}\label{wxtempfilewrite}
\func{bool}{Write}{\param{const void }{*p}, \param{size\_t }{n}} \func{bool}{Write}{\param{const void }{*p}, \param{size\_t }{n}}
Write to the file, return TRUE on success, FALSE on failure. Write to the file, return TRUE on success, FALSE on failure.
\membersection{wxTempFile::Write}\label{wxtempfilewrites} \membersection{wxTempFile::Write}\label{wxtempfilewrites}
\func{bool}{Write}{\param{const wxString\& }{str}} \func{bool}{Write}{\param{const wxString\& }{str}}
Write to the file, return TRUE on success, FALSE on failure. Write to the file, return TRUE on success, FALSE on failure.
\membersection{wxTempFile::Commit}\label{wxtempfilecommit} \membersection{wxTempFile::Commit}\label{wxtempfilecommit}
\func{bool}{Commit}{\void} \func{bool}{Commit}{\void}
Validate changes: deletes the old file of name m\_strName and renames the new Validate changes: deletes the old file of name m\_strName and renames the new
@@ -90,12 +96,14 @@ either the old file couldn't be deleted or that the new file couldn't be renamed
to the old name. to the old name.
\membersection{wxTempFile::Discard}\label{wxtempfilediscard} \membersection{wxTempFile::Discard}\label{wxtempfilediscard}
\func{void}{Discard}{\void} \func{void}{Discard}{\void}
Discard changes: the old file contents is not changed, temporary file is Discard changes: the old file contents is not changed, temporary file is
deleted. deleted.
\membersection{wxTempFile::\destruct{wxTempFile}}\label{wxtempfiledtor} \membersection{wxTempFile::\destruct{wxTempFile}}\label{wxtempfiledtor}
\func{}{\destruct{wxTempFile}}{\void} \func{}{\destruct{wxTempFile}}{\void}
Destructor calls \helpref{Discard()}{wxtempfilediscard} if temporary file Destructor calls \helpref{Discard()}{wxtempfilediscard} if temporary file

View File

@@ -320,8 +320,8 @@ consisting of the from and to values.}
\constfunc{wxString}{GetValue}{\void} \constfunc{wxString}{GetValue}{\void}
Gets the contents of the control. Notice that for a multiline text control, Gets the contents of the control. Notice that for a multiline text control,
the lines will be separated by (Unix-style) '\\n' characters, even under the lines will be separated by (Unix-style) $\backslash$n characters, even under
Windows where they are separated by "\\r\\n" sequence in the native control. Windows where they are separated by a $\backslash$r$\backslash$n sequence in the native control.
\membersection{wxTextCtrl::IsModified}\label{wxtextctrlismodified} \membersection{wxTextCtrl::IsModified}\label{wxtextctrlismodified}
@@ -384,7 +384,7 @@ is to load the first dropped file into the control.
\wxheading{Remarks} \wxheading{Remarks}
This is not yet implemented for the GTK. This is not implemented on non-Windows platforms.
\wxheading{See also} \wxheading{See also}
@@ -476,8 +476,7 @@ TRUE if the operation was successful, FALSE otherwise.
\func{virtual void}{SetEditable}{\param{const bool}{ editable}} \func{virtual void}{SetEditable}{\param{const bool}{ editable}}
Makes the text item editable or read-only, overriding the {\bf wxTE\_READONLY} Makes the text item editable or read-only, overriding the {\bf wxTE\_READONLY} flag.
flag.
\wxheading{Parameters} \wxheading{Parameters}

View File

@@ -52,6 +52,7 @@ No base class
\wxheading{Data structures} \wxheading{Data structures}
The following constants identify the line termination type: The following constants identify the line termination type:
\begin{verbatim} \begin{verbatim}
enum wxTextFileType enum wxTextFileType
{ {

View File

@@ -16,7 +16,7 @@ may be withdrawn in future versions of wxWindows.
\wxheading{Data structures} \wxheading{Data structures}
{\small \begin{verbatim} \begin{verbatim}
typedef unsigned short hourTy; typedef unsigned short hourTy;
typedef unsigned short minuteTy; typedef unsigned short minuteTy;
typedef unsigned short secondTy; typedef unsigned short secondTy;
@@ -24,7 +24,6 @@ typedef unsigned long clockTy;
enum tFormat { wx12h, wx24h }; enum tFormat { wx12h, wx24h };
enum tPrecision { wxStdMinSec, wxStdMin }; enum tPrecision { wxStdMinSec, wxStdMin };
\end{verbatim} \end{verbatim}
}
\wxheading{See also} \wxheading{See also}

View File

@@ -398,7 +398,7 @@ Returns the root item for the tree control.
\constfunc{int}{GetItemSelectedImage}{\param{const wxTreeItemId\& }{item}} \constfunc{int}{GetItemSelectedImage}{\param{const wxTreeItemId\& }{item}}
Gets the selected item image (this function is obsolete, use Gets the selected item image (this function is obsolete, use
{\tt GetItemImage(item, wxTreeItemIcon\_Selected} instead). {\tt GetItemImage(item, wxTreeItemIcon\_Selected}) instead).
\membersection{wxTreeCtrl::GetSelection}\label{wxtreectrlgetselection} \membersection{wxTreeCtrl::GetSelection}\label{wxtreectrlgetselection}
@@ -596,13 +596,13 @@ usage and loading time.
\param{int }{image}, \param{wxTreeItemIcon }{which = wxTreeItemIcon\_Normal}} \param{int }{image}, \param{wxTreeItemIcon }{which = wxTreeItemIcon\_Normal}}
Sets the specified item image. See \helpref{GetItemImage}{wxtreectrlgetitemimage} Sets the specified item image. See \helpref{GetItemImage}{wxtreectrlgetitemimage}
for the description of {\it which} parameter. for the description of the {\it which} parameter.
\membersection{wxTreeCtrl::SetItemSelectedImage}\label{wxtreectrlsetitemselectedimage} \membersection{wxTreeCtrl::SetItemSelectedImage}\label{wxtreectrlsetitemselectedimage}
\func{void}{SetItemSelectedImage}{\param{const wxTreeItemId\&}{ item}, \param{int }{selImage}} \func{void}{SetItemSelectedImage}{\param{const wxTreeItemId\&}{ item}, \param{int }{selImage}}
Sets the selected item image (this function is obsolete, use {\tt SetItemImage(item, wxTreeItemIcon\_Selected} instead). Sets the selected item image (this function is obsolete, use {\tt SetItemImage(item, wxTreeItemIcon\_Selected}) instead).
\membersection{wxTreeCtrl::SetItemText}\label{wxtreectrlsetitemtext} \membersection{wxTreeCtrl::SetItemText}\label{wxtreectrlsetitemtext}
@@ -628,7 +628,7 @@ Sets the state image list (from which application-defined state images are taken
Sorts the children of the given item using Sorts the children of the given item using
\helpref{OnCompareItems}{wxtreectrloncompareitems} method of wxTreeCtrl. You \helpref{OnCompareItems}{wxtreectrloncompareitems} method of wxTreeCtrl. You
should override that method to change the sort order (default is ascending should override that method to change the sort order (the default is ascending
alphabetical order). alphabetical order).
\wxheading{See also} \wxheading{See also}

View File

@@ -22,7 +22,7 @@ methods.}
\wxheading{Virtual functions to override} \wxheading{Virtual functions to override}
This class may be used as is, but all of data transfer functions may be This class may be used as is, but all of the data transfer functions may be
overridden to increase efficiency. overridden to increase efficiency.
\wxheading{Derived from} \wxheading{Derived from}

View File

@@ -13,9 +13,10 @@ Operator >> is overloaded and you can use this class like a standard C++ iostrea
Note, however, that the arguments are the fixed size types wxUint32, wxInt32 etc Note, however, that the arguments are the fixed size types wxUint32, wxInt32 etc
and on a typical 32-bit computer, none of these match to the "long" type (wxInt32 and on a typical 32-bit computer, none of these match to the "long" type (wxInt32
is defined as int on 32-bit architectures) so that you cannot use long. To avoid is defined as int on 32-bit architectures) so that you cannot use long. To avoid
problems (here and elsewhere), make use of the wxInt32, wxUint32, etc types. problems (here and elsewhere), make use of wxInt32, wxUint32 and similar types.
For example: For example:
\begin{verbatim} \begin{verbatim}
wxFileInputStream input( "mytext.txt" ); wxFileInputStream input( "mytext.txt" );
wxTextInputStream text( input ); wxTextInputStream text( input );
@@ -92,6 +93,7 @@ This class provides functions that write text datas using an output stream.
So, you can write {\it text} floats, integers. So, you can write {\it text} floats, integers.
You can also simulate the C++ cout class: You can also simulate the C++ cout class:
\begin{verbatim} \begin{verbatim}
wxFFileOutputStream output( stderr ); wxFFileOutputStream output( stderr );
wxTextOutputStream cout( output ); wxTextOutputStream cout( output );
@@ -117,7 +119,7 @@ be available.
\docparam{stream}{The output stream.} \docparam{stream}{The output stream.}
\docparam{mode}{The end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}.} \docparam{mode}{The end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.}
\membersection{wxTextOutputStream::\destruct{wxTextOutputStream}} \membersection{wxTextOutputStream::\destruct{wxTextOutputStream}}
@@ -129,13 +131,13 @@ Destroys the wxTextOutputStream object.
\func{wxEOL}{wxTextOutputStream::GetMode}{\void} \func{wxEOL}{wxTextOutputStream::GetMode}{\void}
Returns the end-of-line mode. One of {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}. Returns the end-of-line mode. One of {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.
\membersection{wxTextOutputStream::SetMode} \membersection{wxTextOutputStream::SetMode}
\func{void}{wxTextOutputStream::SetMode}{{\param wxEOL}{ mode = wxEOL\_NATIVE}} \func{void}{wxTextOutputStream::SetMode}{{\param wxEOL}{ mode = wxEOL\_NATIVE}}
Set the end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}. Set the end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.
\membersection{wxTextOutputStream::Write8} \membersection{wxTextOutputStream::Write8}

View File

@@ -109,8 +109,7 @@ Returns the initialized stream. You will have to delete it yourself.
\wxheading{See also} \wxheading{See also}
%\helpref{wxInputStream}{wxinputstream} \helpref{wxInputStream}{wxinputstream}
wxInputStream
% %
% SetDefaultProxy % SetDefaultProxy

View File

@@ -37,7 +37,6 @@ capabilities for the various virtual methods.}
\helpref{wxTextValidator}{wxtextvalidator}, \helpref{wxTextValidator}{wxtextvalidator},
\helpref{wxGenericValidator}{wxgenericvalidator}, \helpref{wxGenericValidator}{wxgenericvalidator},
\latexignore{\rtfignore{\wxheading{Members}}} \latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxValidator::wxValidator}\label{wxvalidatorconstr} \membersection{wxValidator::wxValidator}\label{wxvalidatorconstr}
@@ -105,4 +104,3 @@ transferred to the window. Return FALSE if there is a problem.
This overridable function is called when the value in the associated window must be validated. This overridable function is called when the value in the associated window must be validated.
Return FALSE if the value in the window is not valid; you may pop up an error dialog. Return FALSE if the value in the window is not valid; you may pop up an error dialog.

View File

@@ -1,8 +1,8 @@
\section{\class{wxWave}}\label{wxwave} \section{\class{wxWave}}\label{wxwave}
This class represents a short wave file, in Windows WAV format, that This class represents a short wave file, in Windows WAV format, that
can be stored in memory and played. Currently this class is for Windows can be stored in memory and played. Currently this class is implemented
only. on Windows and GTK (Linux) only.
\wxheading{Derived from} \wxheading{Derived from}

View File

@@ -616,7 +616,7 @@ Each window has an integer identifier. If the application has not provided one
\wxheading{See also} \wxheading{See also}
\helpref{wxWindow::SetId}{wxwindowsetid}\rtfsp \helpref{wxWindow::SetId}{wxwindowsetid},\rtfsp
\helpref{Window identifiers}{windowids} \helpref{Window identifiers}{windowids}
\membersection{wxWindow::GetLabel} \membersection{wxWindow::GetLabel}
@@ -1170,7 +1170,8 @@ Called when the background of the window needs to be erased.
\wxheading{Remarks} \wxheading{Remarks}
This event is only generated under Windows. It is therefore recommended that Under non-Windows platforms, this event is simulated (simply generated just before the
paint event) and may cause flicker. It is therefore recommended that
you set the text background colour explicitly in order to prevent flicker. you set the text background colour explicitly in order to prevent flicker.
The default background colour under GTK is grey. The default background colour under GTK is grey.

View File

@@ -242,7 +242,8 @@ recompile wxWindows. The same applies if compiling using the IDE.
Note (5): BC++ 4.5 (not 5.0) trips up over jdmerge.c in the JPEG folder; Note (5): BC++ 4.5 (not 5.0) trips up over jdmerge.c in the JPEG folder;
you will therefore need to set wxUSE_LIBJPEG to 0 in setup.h and remove you will therefore need to set wxUSE_LIBJPEG to 0 in setup.h and remove
the jpeg target from src\msw\makefile.b32. the jpeg target from src\msw\makefile.b32, and remove jpeg from
src\makeprog.b32.
Note (6): If using C++Builder 4 and above (BC++ 5.4 and above), change LINK=tlink32 to Note (6): If using C++Builder 4 and above (BC++ 5.4 and above), change LINK=tlink32 to
LINK=ilink32 in src\makeb32.env. You may also need to disable LINK=ilink32 in src\makeb32.env. You may also need to disable
@@ -372,7 +373,8 @@ improving the compiler.
Cygwin b19/b20/Mingw32 compilation Cygwin b19/b20/Mingw32 compilation
---------------------------------- ----------------------------------
wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, and Mingw32/EGCS. wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32,
and Mingw32/EGCS.
Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making
it all possible. it all possible.
@@ -395,16 +397,19 @@ Here are the steps required:
If using Mingw32 2.8.1, see also see mingw32.txt in this directory If using Mingw32 2.8.1, see also see mingw32.txt in this directory
(docs/msw) about a fix that has to be applied to a Mingw32 header file. (docs/msw) about a fix that has to be applied to a Mingw32 header file.
If using Mingw32 2.95 with wxWindows 2.1 or above, and wish to use OLE, you If using Mingw32 2.95 and below with wxWindows 2.1 or above, you
should hand-patch in Mingw32-gcc295.patches (located in the top-level of the must hand-patch in Mingw32-gcc295.patches (located in the top-level of the
wxWindows 2 installation). wxWindows 2 installation). Mingw32 2.95.2 and above contain the
fixes already.
- Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat) - Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat)
to set up appropriate variables, if necessary mounting drives. to set up appropriate variables, if necessary mounting drives.
Run it before compiling. Run it before compiling.
- For Cygwin, make sure there's a \tmp directory on your - For Cygwin, make sure there's a \tmp directory on your
Windows drive or bison will crash. Windows drive or bison will crash (actually you don't need this
for ordinary wxWindows compilation: a pre-generated .c file is
supplied).
- Edit wx/src/makeg95.env and set the MINGW32 variable at the top of - Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32). the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).

View File

@@ -513,6 +513,9 @@
#undef wxUSE_DEBUG_NEW_ALWAYS #undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0 #define wxUSE_DEBUG_NEW_ALWAYS 0
#undef wxUSE_GLCANVAS
#define wxUSE_GLCANVAS 0
#endif #endif
// MFC duplicates these operators // MFC duplicates these operators
@@ -582,12 +585,21 @@
#define wxUSE_NEW_GRID 0 #define wxUSE_NEW_GRID 0
#endif #endif
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
// BC++ 4.0 can't compile JPEG library
#undef wxUSE_LIBJPEG
#define wxUSE_LIBJPEG 0
#endif
#if defined(__WXMSW__) && defined(__WATCOMC__) #if defined(__WXMSW__) && defined(__WATCOMC__)
#undef wxUSE_LIBJPEG #undef wxUSE_LIBJPEG
#define wxUSE_LIBJPEG 0 #define wxUSE_LIBJPEG 0
#undef wxUSE_LIBTIFF #undef wxUSE_LIBTIFF
#define wxUSE_LIBTIFF 0 #define wxUSE_LIBTIFF 0
#undef wxUSE_GLCANVAS
#define wxUSE_GLCANVAS 0
#endif #endif
#if defined(__WXMSW__) && !defined(__WIN32__) #if defined(__WXMSW__) && !defined(__WIN32__)
@@ -625,6 +637,9 @@
#undef wxUSE_PCX #undef wxUSE_PCX
#define wxUSE_PCX 0 #define wxUSE_PCX 0
#undef wxUSE_GLCANVAS
#define wxUSE_GLCANVAS 0
#endif #endif
#endif #endif

View File

@@ -2,7 +2,8 @@
WXDIR = $(WXWIN) WXDIR = $(WXWIN)
CFG = $(WXDIR)\src\msw\wxwin32.cfg CFG = $(WXDIR)\src\msw\wxwin32.cfg
LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg # Using a config file isn't compatible across all BC++ versions
# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
WXLIBDIR = $(WXDIR)\lib WXLIBDIR = $(WXDIR)\lib
WXLIBDIR2 = $(WXDIR)\contrib\lib WXLIBDIR2 = $(WXDIR)\contrib\lib
WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
@@ -13,6 +14,7 @@ WIN95FLAG = -D__WIN95__ -D__WINDOWS__
# versions of C++ Builder. # versions of C++ Builder.
!ifndef LINK !ifndef LINK
LINK=ilink32 LINK=ilink32
#LINK=tlink32
!endif !endif
!ifndef FINAL !ifndef FINAL

View File

@@ -12,7 +12,7 @@
# If using Cygwin, set this to 0. # If using Cygwin, set this to 0.
# If using Mingw32, set this to 1. # If using Mingw32, set this to 1.
MINGW32=1 MINGW32=0
# Set to the version you have # Set to the version you have
MINGW32VERSION=2.95 MINGW32VERSION=2.95

View File

@@ -15,12 +15,17 @@ WXDIR = $(WXWIN)
LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32 LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
# Note: you may need to remove some libraries for earlier versions of BC++, as below
#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
!if "$(FINAL)" == "0" !if "$(FINAL)" == "0"
LINKFLAGS=/v /c /Tpe +$(LNKCFG) $(EXTRALINKFLAGS) #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
LINKFLAGS=/v /c /Tpe -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
OPT = -Od OPT = -Od
DEBUG_FLAGS= -v DEBUG_FLAGS= -v
!else !else
LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS) #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
LINKFLAGS=/Tpe -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
OPT = -Od OPT = -Od
DEBUG_FLAGS = DEBUG_FLAGS =
!endif !endif

View File

@@ -341,7 +341,7 @@ OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(HTMLOBJS)
default: wx default: wx
wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET) wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
all: all_libs all_execs all: all_libs all_execs
@@ -991,13 +991,10 @@ $(DEBUG_FLAGS)
$(WIN95FLAG) $(WIN95FLAG)
! $(CFG) ! $(CFG)
$(LNKCFG): makefile.b32 #$(LNKCFG): makefile.b32
copy &&! # copy &&!
-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk #-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
! $(LNKCFG) #! $(LNKCFG)
#-I$(WXDIR)\src\common\wxxpm\libxpm.34b\lib
# -Oxt
clean: $(PERIPH_CLEAN_TARGET) clean: $(PERIPH_CLEAN_TARGET)
-erase $(LIBTARGET) -erase $(LIBTARGET)

View File

@@ -727,6 +727,11 @@ xpm: $(CFG)
make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG) make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
cd $(WXDIR)\src\msw cd $(WXDIR)\src\msw
clean_xpm: $(CFG)
cd $(WXDIR)\src\xpm
make -f makefile.bcc clean
cd $(WXDIR)\src\msw
png: $(CFG) png: $(CFG)
cd $(WXDIR)\src\png cd $(WXDIR)\src\png
make -f makefile.bcc make -f makefile.bcc