]> git.saurik.com Git - wxWidgets.git/commitdiff
Cured some small doc typos; some WIN16 fixes; transferred DLL WinMain to
authorJulian Smart <julian@anthemion.co.uk>
Wed, 10 Feb 1999 22:44:53 +0000 (22:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 10 Feb 1999 22:44:53 +0000 (22:44 +0000)
IMPLEMENT_APP() macro so dummy.obj doesn't have to be linked; lexer.l fix
for LEX (I hope)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

31 files changed:
distrib/msw/generic.rsp
distrib/msw/gtk.rsp
distrib/msw/vc.rsp
docs/changes.txt
docs/latex/wx/manual.tex
docs/latex/wx/stream.tex
docs/latex/wx/strmbase.tex
docs/latex/wx/strmzlib.tex
docs/latex/wx/textdlg.tex
docs/motif/install.txt
docs/msw/install.txt
docs/msw/todo.txt
docs/readme.txt
docs/todo.txt
include/wx/app.h
include/wx/msw/setup0.h
include/wx/msw/wx.rc
src/common/lexer.l
src/common/valgen.cpp
src/makeenvs/solaris.env
src/motif/makefile.unx
src/motif/utils.cpp
src/msw/app.cpp
src/msw/dummy.cpp
src/msw/dummydll.cpp
src/msw/makefile.twn
src/msw/makefile.vc
src/msw/menu.cpp
src/msw/utilsexc.cpp
src/msw/window.cpp
utils/dialoged/src/makefile.vc

index 6c3d990befbb16b4b11c203fbbb02d00b47430ab..2f88a7e3243a588443155b7621ed96357d7815ab 100644 (file)
@@ -203,6 +203,12 @@ samples/wxsocket/client.wat
 samples/wxsocket/server.wat
 samples/wxsocket/client.vc
 samples/wxsocket/server.vc
 samples/wxsocket/server.wat
 samples/wxsocket/client.vc
 samples/wxsocket/server.vc
+samples/wxsocket/client.dos
+samples/wxsocket/server.dos
+samples/wxsocket/client.b32
+samples/wxsocket/server.b32
+samples/wxsocket/client.bcc
+samples/wxsocket/server.bcc
 samples/wxsocket/*.xbm
 samples/wxsocket/*.xpm
 samples/wxsocket/*.ico
 samples/wxsocket/*.xbm
 samples/wxsocket/*.xpm
 samples/wxsocket/*.ico
@@ -648,6 +654,12 @@ samples/dde/client.vc
 samples/dde/server.vc
 samples/dde/client.wat
 samples/dde/server.wat
 samples/dde/server.vc
 samples/dde/client.wat
 samples/dde/server.wat
+samples/dde/client.b32
+samples/dde/server.b32
+samples/dde/client.bcc
+samples/dde/server.bcc
+samples/dde/client.dos
+samples/dde/server.dos
 samples/dde/*.rc
 samples/dde/*.def
 samples/dde/*.bmp
 samples/dde/*.rc
 samples/dde/*.def
 samples/dde/*.bmp
index dda919d95a761959431226264862c270bac54a9b..53c4ef8ea555efb4ad836715d63bb09d43c521b8 100644 (file)
@@ -9,6 +9,8 @@ wx-config.in
 mkinstalldirs
 wxGTK.spec
 
 mkinstalldirs
 wxGTK.spec
 
+distrib/gtk/copy_src
+
 docs/gtk/*.html
 docs/gtk/*.txt
 docs/gtk/makewxgtk
 docs/gtk/*.html
 docs/gtk/*.txt
 docs/gtk/makewxgtk
index 6900ebc7da5a0c75d2c0b7de7928cd104b74e79f..2b99cc94d30e8510abd235439ddd9bed69eab093 100644 (file)
@@ -1,5 +1,7 @@
-src/wxVC.dsp
-src/wxVC.dsw
+src/wxvc.dsp
+src/wxvc.dsw
+src/wxvc_dll.dsp
+src/wxvc_dll.dsw
 
 samples/checklst/ChecklstVC.dsp
 samples/checklst/ChecklstVC.dsw
 
 samples/checklst/ChecklstVC.dsp
 samples/checklst/ChecklstVC.dsw
@@ -145,6 +147,8 @@ utils/ogl/src/OglVC.dsp
 utils/ogl/src/OglVC.dsw
 utils/ogl/samples/ogledit/OgleditVC.dsp
 utils/ogl/samples/ogledit/OgleditVC.dsw
 utils/ogl/src/OglVC.dsw
 utils/ogl/samples/ogledit/OgleditVC.dsp
 utils/ogl/samples/ogledit/OgleditVC.dsw
+utils/ogl/samples/studio/StudioVC.dsp
+utils/ogl/samples/studio/StudioVC.dsw
 
 utils/wxtree/src/TreeVC.dsp
 utils/wxtree/src/TreeVC.dsw
 
 utils/wxtree/src/TreeVC.dsp
 utils/wxtree/src/TreeVC.dsw
index e9c60cd523cbe2654877f30d0c74471dfa1ea189..3dda75dc07266bb8c64a8e80b20b50c27869e4a0 100644 (file)
@@ -1,6 +1,28 @@
 wxWindows 2 Change Log
 ----------------------
 
 wxWindows 2 Change Log
 ----------------------
 
+Beta 4, February 1999
+-------------------------
+
+wxGTK:
+
+- Miscellaneous fixes.
+
+wxMSW:
+
+- Makefiles for more compilers and samples; Cygwin makefiles
+  rationalised.
+- Added DLL support to VC++ makefiles.
+
+wxMotif:
+
+
+General:
+
+- Further doc improvements.
+- wxGenericValidator added.
+
+
 Beta 3, January 31st 1999
 -------------------------
 
 Beta 3, January 31st 1999
 -------------------------
 
index c13f2a9cad8b30ebfb1aab55e7148c3591de503a..9048c2324b052e0e2b974a4b97b97ba241de8fea 100644 (file)
 \parskip=10pt
 \parindent=0pt
 \title{User Manual for wxWindows 2.0: a portable C++ GUI toolkit}
 \parskip=10pt
 \parindent=0pt
 \title{User Manual for wxWindows 2.0: a portable C++ GUI toolkit}
-\winhelponly{\author{by Julian Smart
+\winhelponly{\author{by Julian Smart et al
 %\winhelponly{\\$$\image{1cm;0cm}{wxwin.wmf}$$}
 }}
 %\winhelponly{\\$$\image{1cm;0cm}{wxwin.wmf}$$}
 }}
-\winhelpignore{\author{Julian Smart}
-\date{December 27th 1998}
+\winhelpignore{\author{Julian Smart et al}
+\date{February 10th 1999}
 }
 \makeindex
 \begin{document}
 }
 \makeindex
 \begin{document}
index 5bf0c73e250554cf83f86d310906c3d897f95d99..7818a9ae86ece96a23a6243b448609b2409b8a93 100644 (file)
@@ -61,7 +61,7 @@ But you should care about destroying the stream buffer \it{YOURSELF}.
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer:SetBufferIO}{wxstreambufsetbufferio}
+\helpref{wxStreamBuffer:SetBufferIO}{wxstreambuffersetbufferio}
 
 \func{}{wxStreamBuffer}{\param{const wxStreamBuffer &}{buffer}}
 
 
 \func{}{wxStreamBuffer}{\param{const wxStreamBuffer &}{buffer}}
 
@@ -90,7 +90,7 @@ The "Write-Back" buffer is freed.
 % -----------
 % Filtered IO
 % -----------
 % -----------
 % Filtered IO
 % -----------
-\membersection{wxStreamBuffer::Read}\label{wxstreambufread}
+\membersection{wxStreamBuffer::Read}\label{wxstreambufferread}
 
 \func{size\_t}{Read}{\param{void *}{buffer}, \param{size\_t }{size}}
 
 
 \func{size\_t}{Read}{\param{void *}{buffer}, \param{size\_t }{size}}
 
@@ -108,14 +108,14 @@ It returns the real read size. If returned size is different of the specified
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer::WriteBack}{wxstreambufwriteback}
+\helpref{wxStreamBuffer::WriteBack}{wxstreambufferwriteback}
 
 \func{size\_t}{Read}{\param{wxStreamBuffer *}{buffer}}
 
 Reads a \it{buffer}. The function returns when \it{buffer} is full or
 when there aren't datas anymore in the current buffer.
 
 
 \func{size\_t}{Read}{\param{wxStreamBuffer *}{buffer}}
 
 Reads a \it{buffer}. The function returns when \it{buffer} is full or
 when there aren't datas anymore in the current buffer.
 
-\membersection{wxStreamBuffer::Write}
+\membersection{wxStreamBuffer::Write}\label{wxstreambufferwrite}
 
 \func{size\_t}{Write}{\param{const void *}{buffer}, \param{size\_t }{size}}
 
 
 \func{size\_t}{Write}{\param{const void *}{buffer}, \param{size\_t }{size}}
 
@@ -124,9 +124,9 @@ are cached in a buffer before being sent in one block to the stream.
 
 \func{size\_t}{Write}{\param{wxStreamBuffer *}{buffer}}
 
 
 \func{size\_t}{Write}{\param{wxStreamBuffer *}{buffer}}
 
-See \helpref{Read}{wxstreambufreadbuf}
+See \helpref{Read}{wxstreambufferread}.
 
 
-\membersection{wxStreamBuffer::WriteBack}\label{wxstreambufwriteback}
+\membersection{wxStreamBuffer::WriteBack}\label{wxstreambufferwriteback}
 
 \func{size\_t}{WriteBack}{\param{const char*}{ buffer}, \param{size\_t}{ size}}
 
 
 \func{size\_t}{WriteBack}{\param{const char*}{ buffer}, \param{size\_t}{ size}}
 
@@ -157,7 +157,7 @@ You aren't directly notified if an error occured during the IO call.
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer::Read}{wxstreambufread}
+\helpref{wxStreamBuffer::Read}{wxstreambufferread}
 
 \membersection{wxStreamBuffer::PutChar}
 
 
 \membersection{wxStreamBuffer::PutChar}
 
@@ -171,7 +171,7 @@ You aren't directly notified if an error occured during the IO call.
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer::Read}{wxstreambufwrite}
+\helpref{wxStreamBuffer::Read}{wxstreambufferwrite}
 
 \membersection{wxStreamBuffer::Tell}
 
 
 \membersection{wxStreamBuffer::Tell}
 
@@ -216,7 +216,7 @@ the beginning of the stream. Otherwise, it returns wxInvalidOffset.
 
 Resets to the initial state variables concerning the buffer.
 
 
 Resets to the initial state variables concerning the buffer.
 
-\membersection{wxStreamBuffer::SetBufferIO}\label{wxstreambufsetbufferio}
+\membersection{wxStreamBuffer::SetBufferIO}\label{wxstreambuffersetbufferio}
 
 \func{void}{SetBufferIO}{\param{char*}{ buffer\_start}, \param{char*}{ buffer\_end}}
 
 
 \func{void}{SetBufferIO}{\param{char*}{ buffer\_start}, \param{char*}{ buffer\_end}}
 
@@ -235,8 +235,8 @@ it when it is full.
 \wxheading{See also}
 
 \helpref{wxStreamBuffer constructor}{wxstreambufconst}\\
 \wxheading{See also}
 
 \helpref{wxStreamBuffer constructor}{wxstreambufconst}\\
-\helpref{wxStreamBuffer::Fixed}{wxstreambuffixed}\\
-\helpref{wxStreamBuffer::Flushable}{wxstreambufflushable}
+\helpref{wxStreamBuffer::Fixed}{wxstreambufferfixed}\\
+\helpref{wxStreamBuffer::Flushable}{wxstreambufferflushable}
 
 \func{void}{SetBufferIO}{\param{size\_t}{ bufsize}}
 
 
 \func{void}{SetBufferIO}{\param{size\_t}{ bufsize}}
 
@@ -253,8 +253,8 @@ The created IO buffer is growable by the object.
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer::Fixed}{wxstreambuffixed}\\
-\helpref{wxStreamBuffer::Flushable}{wxstreambufflushable}
+\helpref{wxStreamBuffer::Fixed}{wxstreambufferfixed}\\
+\helpref{wxStreamBuffer::Flushable}{wxstreambufferflushable}
 
 \membersection{wxStreamBuffer::GetBufferStart}
 
 
 \membersection{wxStreamBuffer::GetBufferStart}
 
@@ -292,7 +292,7 @@ Sets the current position in the stream buffer.
 
 Returns the amount of bytes read during the last IO call to the parent stream.
 
 
 Returns the amount of bytes read during the last IO call to the parent stream.
 
-\membersection{wxStreamBuffer::Fixed}
+\membersection{wxStreamBuffer::Fixed}\label{wxstreambufferfixed}
 
 \func{void}{Fixed}{\param{bool}{ fixed}}
 
 
 \func{void}{Fixed}{\param{bool}{ fixed}}
 
@@ -302,9 +302,9 @@ Toggles the fixed flag. Usually this flag is toggled at the same time as
 
 \wxheading{See also}
 
 
 \wxheading{See also}
 
-\helpref{wxStreamBuffer::SetBufferIO}{wxstreambufsetbufferio}
+\helpref{wxStreamBuffer::SetBufferIO}{wxstreambuffersetbufferio}
 
 
-\membersection{wxStreamBuffer::Flushable}
+\membersection{wxStreamBuffer::Flushable}\label{wxstreambufferflushable}
 
 \func{void}{Flushable}{\param{bool}{ flushable}}
 
 
 \func{void}{Flushable}{\param{bool}{ flushable}}
 
index 70eaf826892ec690375900fe03aa5cad70dab1c2..f35be6e23ca0dc6b50c75645aa679ee8a1b66e71 100644 (file)
@@ -42,7 +42,7 @@ This function returns the last error.
 \twocolitem{{\bf wxStream_NOERROR}}{No error occured.}
 \twocolitem{{\bf wxStream_EOF}}{An End-Of-File occured.}
 \twocolitem{{\bf wxStream_WRITE_ERR}}{A generic error occured on the last write call.}
 \twocolitem{{\bf wxStream_NOERROR}}{No error occured.}
 \twocolitem{{\bf wxStream_EOF}}{An End-Of-File occured.}
 \twocolitem{{\bf wxStream_WRITE_ERR}}{A generic error occured on the last write call.}
-\twocolitem{\bf wxStream_READ_ERR}{A generic error occured on the last read call.}
+\twocolitem{{\bf wxStream_READ_ERR}}{A generic error occured on the last read call.}
 \end{twocollist}
 
 \membersection{wxStreamBase::StreamSize}
 \end{twocollist}
 
 \membersection{wxStreamBase::StreamSize}
index eadbb0897c2f1e635c39db6819f6a6e2d2f68b8b..e7e6cfd4ee100c8bc3c5175f6a2d7ca377711186 100644 (file)
@@ -1,7 +1,7 @@
 % -----------------------------------------------------------------------------
 % wxZlibInputStream
 % -----------------------------------------------------------------------------
 % -----------------------------------------------------------------------------
 % wxZlibInputStream
 % -----------------------------------------------------------------------------
-\section{\class{wxZlibInputStream}}
+\section{\class{wxZlibInputStream}}\label{wxzlibinputstream}
 
 \wxheading{Derived from}
 
 
 \wxheading{Derived from}
 
@@ -19,7 +19,7 @@ stream to get new compressed data.
 % -----------------------------------------------------------------------------
 % wxZlibOutputStream
 % -----------------------------------------------------------------------------
 % -----------------------------------------------------------------------------
 % wxZlibOutputStream
 % -----------------------------------------------------------------------------
-\section{\class{wxZlibOutputStream}}
+\section{\class{wxZlibOutputStream}}\label{wxzliboutputstream}
 
 \wxheading{Derived from}
 
 
 \wxheading{Derived from}
 
@@ -31,6 +31,6 @@ stream to get new compressed data.
 
 \wxheading{Short description}
 
 
 \wxheading{Short description}
 
-This stream compresses all data written to it and passed the compressed data
+This stream compresses all data written to it, and passes the compressed data
 to the ``filtered'' stream.
 
 to the ``filtered'' stream.
 
index ec2f8d1db58017b5b23a2fd622958f974a712169..b6035be3a188b80b907bed3d6d52e55436878f3d 100644 (file)
@@ -18,8 +18,8 @@ It is implemented as a generic wxWindows dialog.
 
 \membersection{wxTextEntryDialog::wxTextEntryDialog}\label{wxtextentrydialogconstr}
 
 
 \membersection{wxTextEntryDialog::wxTextEntryDialog}\label{wxtextentrydialogconstr}
 
-\func{}{wxTextEntryDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message = "Please enter text"},\rtfsp
-\param{const wxString\& }{defaultValue = ""}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE}, \param{const wxPoint\& }{pos = wxDefaultPosition}}
+\func{}{wxTextEntryDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message},\rtfsp
+\param{const wxString\& }{caption = "Please enter text"}, \param{const wxString\& }{defaultValue = ""}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE}, \param{const wxPoint\& }{pos = wxDefaultPosition}}
 
 Constructor. Use \helpref{wxTextEntryDialog::ShowModal}{wxtextentrydialogshowmodal} to show the dialog.
 
 
 Constructor. Use \helpref{wxTextEntryDialog::ShowModal}{wxtextentrydialogshowmodal} to show the dialog.
 
index 1279481f7779f1bfbff2f0758523490411cb5830..6e9db5b047b99d1ab495a4bffc2a788c80b9f8b0 100644 (file)
@@ -105,8 +105,21 @@ COMPILING USING MAKEFILES
 
   and run the resulting minimal_motif binary.
 
 
   and run the resulting minimal_motif binary.
 
-Notes:
-------
+Troubleshooting
+---------------
+
+- If you have trouble compiling the file y_tab.c, or have strange
+  linking errors, check whether you're using a C or C++ compiler for this file.
+  You should specify a C compiler in the CCLEX variable in src/make.env.
+  You could also try using bison and flex instead of yacc and
+  lex.
+
+- Solaris compilation with gcc: if the compiler has problems with the variable argument
+  functions, try putting the gcc fixinclude file paths early in the
+  include path.
+
+Other Notes
+-----------
 
 - Better installation and makefile systems are
   required. A revised configure system is in preparation.
 
 - Better installation and makefile systems are
   required. A revised configure system is in preparation.
@@ -128,10 +141,6 @@ Notes:
   For Linux, the problem is expected to go away with future
   distributions of the operating system.
 
   For Linux, the problem is expected to go away with future
   distributions of the operating system.
 
-- If you have trouble compiling the file y_tab.c, or have strange
-  linking errors, check whether you're using a C or C++ compiler for this file.
-  You should specify a C compiler in the CCLEX variable in src/make.env.
-
 - If you run into problems with a missing X11/Xpm.h header, you
   need to install the XPM package. It can be obtained from:
 
 - If you run into problems with a missing X11/Xpm.h header, you
   need to install the XPM package. It can be obtained from:
 
@@ -146,8 +155,11 @@ Notes:
   to 0, and recompile. You will not be able to load any XPMs,
   though (currently the only supported colour bitmap format).
 
   to 0, and recompile. You will not be able to load any XPMs,
   though (currently the only supported colour bitmap format).
 
-- Please send bug reports with a description of your environment,
-  compiler and the error message(s) to the wxwin-users mailing list at:
+Bug reports
+-----------
+
+Please send bug reports with a description of your environment,
+compiler and the error message(s) to the wxwin-users mailing list at:
 
     wxwin-users@wx.dent.med.uni-muenchen.de
 
 
     wxwin-users@wx.dent.med.uni-muenchen.de
 
index a8e5447ff59d68480af002de671bc0fda8890795..ddb16cc33488fe9b15df2592c652adf385911eb6 100644 (file)
@@ -98,6 +98,16 @@ Note (2): libraries and applications generated with makefiles and
 project files are unlikely to be compatible, so use one method or
 the other.
 
 project files are unlikely to be compatible, so use one method or
 the other.
 
+Note (3): VC++ 5's optimization code seems to be broken and can
+cause problems: this can be seen when deleting an object Dialog
+Editor, in Release mode with optimizations on. If in doubt,
+switch off optimisations, although this will result in much
+larger executables. It seems possible that the library can be created with
+strong optimization, so long as the application is not strongly
+optimized. For example, in wxWindows project, set to 'Minimum
+Size'. In Dialog Editor project, set to 'Customize: Favor Small
+Code' (and no others). This will then work.
+
 Visual C++ 1.5 compilation
 --------------------------
 
 Visual C++ 1.5 compilation
 --------------------------
 
index 89dbba57a50ca060985f6d7b14f6b5ab07a24cb0..834d74c85c444e3caa4946708041b685fd7ded7c 100644 (file)
@@ -14,10 +14,7 @@ Update manual.
     wxListBox changes (for ownerdraw functionality)
     wxThread            DONE (except for topic overview)
     wxString            PARTLY DONE
     wxListBox changes (for ownerdraw functionality)
     wxThread            DONE (except for topic overview)
     wxString            PARTLY DONE
-    wxBaseArray, other arrays
-    (wxOwnerDrawn)
     Document the include file for each class
     Document the include file for each class
-    Stream classes
     wxSocket topic overview
     Functions
 
     wxSocket topic overview
     Functions
 
@@ -35,15 +32,12 @@ Supply correct ctl3d/odbc lib files for BC++, Watcom (corrupt?)
 
 Implement new wxClipboard and DnD (Vadim)
 
 
 Implement new wxClipboard and DnD (Vadim)
 
-Implement wxToolTip
+Implement wxToolTip (Vadim)
 
 LOW PRIORITY (MEDIUM TERM)
 --------------------------
 
 
 LOW PRIORITY (MEDIUM TERM)
 --------------------------
 
-Get wxMSW's wxGLCanvas working with non-VC++ compilers.
-
-Generate VC++ lib project files and supply VC++ project
-generator utility.
+Supply VC++ project generator utility.
 
 Convert remaining utilities e.g. wxGraphLayout.
 
 
 Convert remaining utilities e.g. wxGraphLayout.
 
index c1b18eec46167a0fd58f7ef6baf3e7043b98147d..d8fff9d6740bb00c6341d5123c649327f458ee4b 100644 (file)
@@ -1,4 +1,4 @@
-wxWindows 2 beta 3
+wxWindows 2 beta 4
 ------------------
 
 Welcome to wxWindows 2, a sophisticated cross-platform C++
 ------------------
 
 Welcome to wxWindows 2, a sophisticated cross-platform C++
index 2dc4bd4957fdb1d8e3fe2bf8148c485bb6606224..6492e73e07b8e8fdc4343db47a6f59196c71bc25 100644 (file)
@@ -20,14 +20,6 @@ Please see also:
 
 - Fix TCP/IP mode in dde sample (how to use; why does it crash).
 
 
 - Fix TCP/IP mode in dde sample (how to use; why does it crash).
 
-- Remove trashed CVS files:
-
-  include/wx/msw/magnif1.cur
-  src/msw/ctl3d/*
-  utils/glcanvas/samples/isosurf/isosurf.dat.gz
-
-  and re-add them.
-
 - wxDB ODBC classes: it seems that there are too many
   Sybase-specific features for it to work on e.g. MySQL,
   PostgreSQL. Find out what Remstar uses and document
 - wxDB ODBC classes: it seems that there are too many
   Sybase-specific features for it to work on e.g. MySQL,
   PostgreSQL. Find out what Remstar uses and document
@@ -36,5 +28,7 @@ Please see also:
 - In doc/view file selector, document type is selected by
   extension, not the type selected in the (Windows) file selector.
 
 - In doc/view file selector, document type is selected by
   extension, not the type selected in the (Windows) file selector.
 
+- Add all makefiles/documentation for utils/serialize.
+
 - Complete this ToDo list :-)
 
 - Complete this ToDo list :-)
 
index d454acf6fa39371bbc875ecffc828899b6c09620..64b479d1f05c58c252e3e57ff43745f1301e9ceb 100644 (file)
@@ -60,6 +60,26 @@ public:
 #define IMPLEMENT_WXWIN_MAIN \
 extern int wxEntry( int argc, char *argv[] ); \
 int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
 #define IMPLEMENT_WXWIN_MAIN \
 extern int wxEntry( int argc, char *argv[] ); \
 int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
+
+#elif defined(__WXMSW__) && defined(WXUSINGDLL)
+
+// NT defines APIENTRY, 3.x not
+#if !defined(WXAPIENTRY)
+#  ifdef __WATCOMC__
+#    define WXAPIENTRY PASCAL
+#  else
+#    define WXAPIENTRY FAR PASCAL
+#  endif
+#endif
+
+#define IMPLEMENT_WXWIN_MAIN \
+int WXAPIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,\
+        LPSTR m_lpCmdLine, int nCmdShow )\
+{\
+    return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance,\
+                   m_lpCmdLine, nCmdShow);\
+}
+
 #else
 #define IMPLEMENT_WXWIN_MAIN
 #endif
 #else
 #define IMPLEMENT_WXWIN_MAIN
 #endif
index 95fdd2f356086888dbbd46035e29a36b8b892180..df22ac28c31010f4ba2f1e487a340f1af70bea36 100644 (file)
 #undef wxUSE_THREADS
 #define wxUSE_THREADS 0
 
 #undef wxUSE_THREADS
 #define wxUSE_THREADS 0
 
+#undef wxUSE_TOOLTIPS
+#define wxUSE_TOOLTIPS 0
+
 #endif
 
 #endif
 #endif
 
 #endif
index 3c0f4e3478c7c1350f5af52fa8f35eae99a85df7..220d689e8c6281747462a7bcbd991a323266cc53 100644 (file)
@@ -84,21 +84,6 @@ END
 // Standard wxWindows Cursors
 //
 
 // Standard wxWindows Cursors
 //
 
-#ifdef __SALFORDC__
-WXCURSOR_HAND           CURSOR  DISCARDABLE     WXINCDIR"wx/msw/hand.cur"
-WXCURSOR_BULLSEYE       CURSOR  DISCARDABLE     WXINCDIR"wx/msw/bullseye.cur"
-WXCURSOR_PENCIL         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/pencil.cur"
-WXCURSOR_MAGNIFIER      CURSOR  DISCARDABLE     WXINCDIR"wx/msw/magnif1.cur"
-WXCURSOR_NO_ENTRY       CURSOR  DISCARDABLE     WXINCDIR"wx/msw/noentry.cur"
-WXCURSOR_SIZING         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/size.cur"
-WXCURSOR_ROLLER         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/roller.cur"
-WXCURSOR_WATCH          CURSOR  DISCARDABLE     WXINCDIR"wx/msw/watch1.cur"
-WXCURSOR_PBRUSH         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/pbrush.cur"
-WXCURSOR_PLEFT          CURSOR  DISCARDABLE     WXINCDIR"wx/msw/pntleft.cur"
-WXCURSOR_PRIGHT         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/pntright.cur"
-WXCURSOR_QARROW         CURSOR  DISCARDABLE     WXINCDIR"wx/msw/query.cur"
-WXCURSOR_BLANK          CURSOR  DISCARDABLE     WXINCDIR"wx/msw/blank.cur"
-#else
 WXCURSOR_HAND           CURSOR  DISCARDABLE     "wx/msw/hand.cur"
 WXCURSOR_BULLSEYE       CURSOR  DISCARDABLE     "wx/msw/bullseye.cur"
 WXCURSOR_PENCIL         CURSOR  DISCARDABLE     "wx/msw/pencil.cur"
 WXCURSOR_HAND           CURSOR  DISCARDABLE     "wx/msw/hand.cur"
 WXCURSOR_BULLSEYE       CURSOR  DISCARDABLE     "wx/msw/bullseye.cur"
 WXCURSOR_PENCIL         CURSOR  DISCARDABLE     "wx/msw/pencil.cur"
@@ -112,7 +97,6 @@ WXCURSOR_PLEFT          CURSOR  DISCARDABLE     "wx/msw/pntleft.cur"
 WXCURSOR_PRIGHT         CURSOR  DISCARDABLE     "wx/msw/pntright.cur"
 WXCURSOR_QARROW         CURSOR  DISCARDABLE     "wx/msw/query.cur"
 WXCURSOR_BLANK          CURSOR  DISCARDABLE     "wx/msw/blank.cur"
 WXCURSOR_PRIGHT         CURSOR  DISCARDABLE     "wx/msw/pntright.cur"
 WXCURSOR_QARROW         CURSOR  DISCARDABLE     "wx/msw/query.cur"
 WXCURSOR_BLANK          CURSOR  DISCARDABLE     "wx/msw/blank.cur"
-#endif
 
 //////////////////////////////////////////////////////////////////////////////
 //
 
 //////////////////////////////////////////////////////////////////////////////
 //
index bb25277e79dc639b52b7d210924293925248a14b..c8700e0c78f72c4fc0b3d6bd4611ab488f14ce4e 100644 (file)
@@ -191,6 +191,8 @@ static int my_input( void )
 
 void wxExprCleanUp()
 {
 
 void wxExprCleanUp()
 {
+#ifdef FLEX_SCANNER
        if (yy_current_buffer)
                yy_delete_buffer(yy_current_buffer);
        if (yy_current_buffer)
                yy_delete_buffer(yy_current_buffer);
+#endif
 }
 }
index 76666bcdb1ef5adc8936d38422ad27dc4201458c..8dbc461079066692fa62051113d885614474053f 100644 (file)
 #include "wx/wx.h"
 #endif
 
 #include "wx/wx.h"
 #endif
 
+#ifndef __WIN16__
 #include "wx/spinbutt.h"
 #include "wx/checklst.h"
 #include "wx/spinbutt.h"
 #include "wx/checklst.h"
+#endif
 
 #include "wx/valgen.h"
 
 
 #include "wx/valgen.h"
 
@@ -129,6 +131,7 @@ bool wxGenericValidator::TransferToWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#ifndef __WIN16__
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) )
   {
     wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow;
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) )
   {
     wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow;
@@ -138,6 +141,7 @@ bool wxGenericValidator::TransferToWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#endif
   // string controls
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
   {
   // string controls
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
   {
@@ -184,6 +188,7 @@ bool wxGenericValidator::TransferToWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#ifndef __WIN16__
   // array controls
   // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox
   // MUST come first:
   // array controls
   // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox
   // MUST come first:
@@ -205,6 +210,7 @@ bool wxGenericValidator::TransferToWindow(void)
        else
                return FALSE;
   }
        else
                return FALSE;
   }
+#endif
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxListBox)) )
   {
     wxListBox* pControl = (wxListBox*) m_validatorWindow;
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxListBox)) )
   {
     wxListBox* pControl = (wxListBox*) m_validatorWindow;
@@ -279,6 +285,7 @@ bool wxGenericValidator::TransferFromWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#ifndef __WIN16__
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) )
   {
     wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow;
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxSpinButton)) )
   {
     wxSpinButton* pControl = (wxSpinButton*) m_validatorWindow;
@@ -288,6 +295,7 @@ bool wxGenericValidator::TransferFromWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#endif
   // string controls
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
   {
   // string controls
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
   {
@@ -334,6 +342,7 @@ bool wxGenericValidator::TransferFromWindow(void)
       return TRUE;
     }
   }
       return TRUE;
     }
   }
+#ifndef __WIN16__
   // array controls
   // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox
   // MUST come first:
   // array controls
   // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox
   // MUST come first:
@@ -354,6 +363,7 @@ bool wxGenericValidator::TransferFromWindow(void)
        else
          return FALSE;
   }
        else
          return FALSE;
   }
+#endif
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxListBox)) )
   {
     wxListBox* pControl = (wxListBox*) m_validatorWindow;
   else if (m_validatorWindow->IsKindOf(CLASSINFO(wxListBox)) )
   {
     wxListBox* pControl = (wxListBox*) m_validatorWindow;
index fa4a6fde53d56430c9a92d950959accffa8a4d05..a6c8d1b7fd2c8745fc1f02819499ed7208868db5 100644 (file)
@@ -30,7 +30,7 @@ RANLIB      = ranlib
 
 # Debug/trace mode. 1 or more for debugging.
 DEBUG       = 0
 
 # Debug/trace mode. 1 or more for debugging.
 DEBUG       = 0
-GUI         = -D__MOTIF__ -D__LINUX__ -D__UNIX__
+GUI         = -D__MOTIF__ -D__SOLARIS__ -D__UNIX__
 GUISUFFIX   = _motif
 
 ########################## Compiler flags #############################
 GUISUFFIX   = _motif
 
 ########################## Compiler flags #############################
index 6a0d47c13ded27836de3737171371013ea74fffb..27fc8a76a86f940cf63a3a6a483880944ec5c253 100644 (file)
@@ -207,6 +207,10 @@ $(WXLIB) : $(OBJECTS)
         sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
        /bin/rm -f ../common/lex.yy.c
 
         sed -e "s/YYLMAX 200/YYLMAX 5000/g" > ../common/lex_yy.c
        /bin/rm -f ../common/lex.yy.c
 
+# N.B. if you have lex instead of flex, replace the $(LEX) line above
+# with the following:
+#    $(LEX) ../common/lexer.l
+
 # Replace yacc with bison if you run into compilation
 # problems with y_tab.c.
 ../common/y_tab.c:     ../common/parser.y
 # Replace yacc with bison if you run into compilation
 # problems with y_tab.c.
 ../common/y_tab.c:     ../common/parser.y
index 1e026d61b376a2b8f7b9319f1c1cd7b565a02d1d..99569a53c2d594cd258ca3931b3050eea10f1e48 100644 (file)
@@ -34,7 +34,7 @@
 #include <netdb.h>
 #include <signal.h>
 
 #include <netdb.h>
 #include <signal.h>
 
-#if defined(__SVR4__) && !defined(__HPUX__)
+#if defined(__SOLARIS__) || defined(__SVR4__) && !defined(__HPUX__)
 #include <sys/systeminfo.h>
 #endif
 
 #include <sys/systeminfo.h>
 #endif
 
@@ -61,7 +61,7 @@ extern wxList wxTopLevelWindows;
 // Get full hostname (eg. DoDo.BSn-Germany.crg.de)
 bool wxGetHostName(char *buf, int maxSize)
 {
 // Get full hostname (eg. DoDo.BSn-Germany.crg.de)
 bool wxGetHostName(char *buf, int maxSize)
 {
-#if defined(__SVR4__) && !defined(__HPUX__)
+#if defined(__SOLARIS__) || defined(__SVR4__) && !defined(__HPUX__)
     return (sysinfo (SI_HOSTNAME, buf, maxSize) != -1);
 #else /* BSD Sockets */
     char name[255];
     return (sysinfo (SI_HOSTNAME, buf, maxSize) != -1);
 #else /* BSD Sockets */
     char name[255];
@@ -491,7 +491,7 @@ void wxXMergeDatabases (wxApp * theApp, Display * display)
         size_t len;
         environment = GetIniFile (filename, NULL);
         len = strlen (environment);
         size_t len;
         environment = GetIniFile (filename, NULL);
         len = strlen (environment);
-#if defined(__SVR4__) && !defined(__HPUX__)
+#if defined(__SOLARIS__) || defined(__SVR4__) && !defined(__HPUX__)
         (void) sysinfo (SI_HOSTNAME, environment + len, 1024 - len);
 #else
         (void) gethostname (environment + len, 1024 - len);
         (void) sysinfo (SI_HOSTNAME, environment + len, 1024 - len);
 #else
         (void) gethostname (environment + len, 1024 - len);
index cbf871abdea2d4b3cc73d757ef4750e6d0802ece..8488c2d14f02996e75c2abfc614f81a868e6e6cf 100644 (file)
@@ -248,7 +248,7 @@ bool wxApp::RegisterWindowClasses()
 // Register the frame window class.
   WNDCLASS wndclass;   // Structure used to register Windows class.
 
 // Register the frame window class.
   WNDCLASS wndclass;   // Structure used to register Windows class.
 
-  wndclass.style         = CS_HREDRAW | CS_VREDRAW;
+  wndclass.style         = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
   wndclass.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass.cbClsExtra    = 0;
   wndclass.cbWndExtra    = sizeof( DWORD ); // was 4
   wndclass.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass.cbClsExtra    = 0;
   wndclass.cbWndExtra    = sizeof( DWORD ); // was 4
@@ -272,7 +272,7 @@ bool wxApp::RegisterWindowClasses()
 // Register the MDI frame window class.
   WNDCLASS wndclass1;   // Structure used to register Windows class.
 
 // Register the MDI frame window class.
   WNDCLASS wndclass1;   // Structure used to register Windows class.
 
-  wndclass1.style         = CS_HREDRAW | CS_VREDRAW;
+  wndclass1.style         = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
   wndclass1.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass1.cbClsExtra    = 0;
   wndclass1.cbWndExtra    = sizeof( DWORD ); // was 4
   wndclass1.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass1.cbClsExtra    = 0;
   wndclass1.cbWndExtra    = sizeof( DWORD ); // was 4
@@ -294,7 +294,7 @@ bool wxApp::RegisterWindowClasses()
 // Register the MDI child frame window class.
   WNDCLASS wndclass4;   // Structure used to register Windows class.
 
 // Register the MDI child frame window class.
   WNDCLASS wndclass4;   // Structure used to register Windows class.
 
-  wndclass4.style         = CS_HREDRAW | CS_VREDRAW;
+  wndclass4.style         = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
   wndclass4.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass4.cbClsExtra    = 0;
   wndclass4.cbWndExtra    = sizeof( DWORD ); // was 4
   wndclass4.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass4.cbClsExtra    = 0;
   wndclass4.cbWndExtra    = sizeof( DWORD ); // was 4
@@ -321,7 +321,7 @@ bool wxApp::RegisterWindowClasses()
   memset(&wndclass2, 0, sizeof(WNDCLASS));   // start with NULL defaults
   // Use CS_OWNDC to avoid messing about restoring the context
   // for every graphic operation.
   memset(&wndclass2, 0, sizeof(WNDCLASS));   // start with NULL defaults
   // Use CS_OWNDC to avoid messing about restoring the context
   // for every graphic operation.
-  wndclass2.style         = CS_HREDRAW | CS_VREDRAW;
+  wndclass2.style         = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS ;
   wndclass2.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass2.cbClsExtra    = 0;
   wndclass2.cbWndExtra    = sizeof( DWORD ); // was 4
   wndclass2.lpfnWndProc   = (WNDPROC)wxWndProc;
   wndclass2.cbClsExtra    = 0;
   wndclass2.cbWndExtra    = sizeof( DWORD ); // was 4
index 5bca45319e501d7c11aef99558735f5547610c4f..dda57b7e3b3a0757f37f57c511e1bbc27f49568c 100644 (file)
 #endif
 
 // if wxWindows is in the DLL link our entry point with the application
 #endif
 
 // if wxWindows is in the DLL link our entry point with the application
-#if defined(WXUSINGDLL)
+// N.B. see include/wx/app.h, we're now putting this in IMPLEMENT_APP so we
+// don't have to link our apps with dummy.obj.
+
+#if 0 // defined(WXUSINGDLL)
 
 // NT defines APIENTRY, 3.x not
 #if !defined(APIENTRY)
 
 // NT defines APIENTRY, 3.x not
 #if !defined(APIENTRY)
index 1a594077d8ccf77b4047aa3fecf6662b587219a0..f1a29bcf1ed5a3e6bcb0621bc8b4b6ecfced7ca9 100644 (file)
@@ -19,7 +19,7 @@
 
 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
 // dummy.obj isn't linked and we get a linker error.
 
 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
 // dummy.obj isn't linked and we get a linker error.
-#if defined(__VISUALC__) && defined(__WIN16__)
+#if defined(__VISUALC__)
     char wxDummyChar=0;
 #endif
 
     char wxDummyChar=0;
 #endif
 
index dab7599437b0fac76626df03a53a3f0011f2051f..2e1918fc4ac9e45214e0df1688eb2a06f853d586 100644 (file)
@@ -281,7 +281,7 @@ $(COMMDIR)/y_tab.$(OBJSUFF):    $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
 $(COMMDIR)/lex_yy.c:   $(COMMDIR)/lexer.l
        $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
 
 $(COMMDIR)/lex_yy.c:   $(COMMDIR)/lexer.l
        $(LEX) $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
 
-# The following may be required for some versions of LEX/FLEX
+# The following may be required for FLEX
 #      $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
 
 #      sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
 #      $(LEX) -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
 
 #      sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
index 73b6293aa8641d3b37734edd2c0d3eb570253f1f..4bb2cd095a3a5dd0872c897c502d4461bdf5efc4 100644 (file)
@@ -295,14 +295,19 @@ $(WXDIR)\lib\wx200.dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\wx200.lib
 ########################################################
 # Windows-specific objects
 
 ########################################################
 # Windows-specific objects
 
-dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
+dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
         cl $(CPPFLAGS) $(MAKEPRECOMP) /c /Tp $*.$(SRCSUFF)
 
         cl $(CPPFLAGS) $(MAKEPRECOMP) /c /Tp $*.$(SRCSUFF)
 
-dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h
+dummydll.obj: dummydll.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h
         cl @<<
 $(CPPFLAGS) $(MAKEPRECOMP) /c /Tp $*.$(SRCSUFF)
 <<
 
         cl @<<
 $(CPPFLAGS) $(MAKEPRECOMP) /c /Tp $*.$(SRCSUFF)
 <<
 
+# If taking wxWindows from CVS, setup.h doesn't exist yet.
+$(WXDIR)\include\wx\msw\setup.h: $(WXDIR)\include\wx\msw\setup0.h
+    -copy "$(WXDIR)"\include\wx\msw\setup.h "$(WXDIR)"\include\wx\msw\setup.bak
+    copy "$(WXDIR)"\include\wx\msw\setup0.h "$(WXDIR)"\include\wx\msw\setup.h 
+
 $(MSWDIR)/accel.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
 $(MSWDIR)/accel.obj:     $*.$(SRCSUFF)
         cl @<<
 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF) /Fo$@
index a24f0f419de9050c2fc17c1070ea7824c149404d..dbf1723befbfd79336bdc0c3a16002f4b9c2acb0 100644 (file)
@@ -341,6 +341,7 @@ void wxMenu::SetTitle(const wxString& label)
     }
   }
 
     }
   }
 
+#ifndef __WIN16__
   // put the title string in bold face
   if ( !m_title.IsEmpty() )
   {
   // put the title string in bold face
   if ( !m_title.IsEmpty() )
   {
@@ -354,6 +355,7 @@ void wxMenu::SetTitle(const wxString& label)
       wxLogLastError("SetMenuItemInfo");
     }
   }
       wxLogLastError("SetMenuItemInfo");
     }
   }
+#endif
 }
 
 const wxString wxMenu::GetTitle() const
 }
 
 const wxString wxMenu::GetTitle() const
index 5f12734b4c1a1bca86434a744f513ceac3cc1d69..ade6c3077ab33b77df38fdb0e4a44f0241492cf0 100644 (file)
@@ -77,10 +77,12 @@ struct wxExecuteData
 public:
     ~wxExecuteData()
     {
 public:
     ~wxExecuteData()
     {
+#ifndef __WIN16__
         if ( !::CloseHandle(hProcess) )
         {
             wxLogLastError("CloseHandle(hProcess)");
         }
         if ( !::CloseHandle(hProcess) )
         {
             wxLogLastError("CloseHandle(hProcess)");
         }
+#endif
     }
 
     HWND       hWnd;          // window to send wxWM_PROC_TERMINATED to
     }
 
     HWND       hWnd;          // window to send wxWM_PROC_TERMINATED to
index 9dcf9a86a1be28eb2a0c50744e008619f8145cf8..6bc6898c495596a50ab1456c8fabb67fd0b5f286 100644 (file)
 
 #include "wx/menuitem.h"
 #include "wx/log.h"
 
 #include "wx/menuitem.h"
 #include "wx/log.h"
+
+#if wxUSE_TOOLTIPS
 #include "wx/tooltip.h"
 #include "wx/tooltip.h"
+#endif
+
 #include "wx/intl.h"
 #include "wx/log.h"
 
 #include "wx/intl.h"
 #include "wx/log.h"
 
@@ -2037,7 +2041,7 @@ bool wxWindow::MSWProcessMessage(WXMSG* pMsg)
                             // it
                             return FALSE;
                         }
                             // it
                             return FALSE;
                         }
-
+#ifndef __WIN16__
                         wxButton *btnDefault = GetDefaultItem();
                         if ( btnDefault && !bCtrlDown )
                         {
                         wxButton *btnDefault = GetDefaultItem();
                         if ( btnDefault && !bCtrlDown )
                         {
@@ -2050,6 +2054,7 @@ bool wxWindow::MSWProcessMessage(WXMSG* pMsg)
                         // else: but if there is not it makes sense to make it
                         //       work like a TAB - and that's what we do.
                         //       Note that Ctrl-Enter always works this way.
                         // else: but if there is not it makes sense to make it
                         //       work like a TAB - and that's what we do.
                         //       Note that Ctrl-Enter always works this way.
+#endif
                     }
                     break;
 
                     }
                     break;
 
index 79339bd8b64e8aa7d8c5c19c2dcd9df07e0684c7..fce0a56fd715d9f8ad222e8fff92902c34ee0c8e 100644 (file)
 # Use FINAL=1 argument to nmake to build final version with no debugging
 # info
 
 # Use FINAL=1 argument to nmake to build final version with no debugging
 # info
 
+
+# N.B. This makefiles uses CPPFLAGS2 to disable precompiled headers so we
+# can override optimization, which is necessary for correct behaviour under
+# VC++ 5 (otherwise deleting an object causes a crash).
+
 # Set WXDIR for your system
 WXDIR = $(WXWIN)
 THISDIR = $(WXDIR)\utils\dialoged\src
 DOCDIR=$(WXDIR)\docs
 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
 
 # Set WXDIR for your system
 WXDIR = $(WXWIN)
 THISDIR = $(WXDIR)\utils\dialoged\src
 DOCDIR=$(WXDIR)\docs
 LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
 
+OVERRIDEFLAGS=/Od
+
 PROGRAM=dialoged
  
 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
 PROGRAM=dialoged
  
 OBJECTS = dialoged.obj reseditr.obj dlghndlr.obj reswrite.obj\
@@ -29,47 +36,47 @@ all:    dialoged.exe
 
 dialoged.obj:      winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 
 dialoged.obj:      winprop.h reseditr.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 winprop.obj:      winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 winprop.obj:      winprop.h reseditr.h winprop.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 reswrite.obj:      winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 reswrite.obj:      winprop.h reseditr.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 reseditr.obj:      winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 reseditr.obj:      winprop.h reseditr.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 edtree.obj:      winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 edtree.obj:      winprop.h reseditr.h edtree.h edtree.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 edlist.obj:      winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 edlist.obj:      winprop.h reseditr.h edlist.h edlist.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 dlghndlr.obj:      winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 dlghndlr.obj:      winprop.h reseditr.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 symbtabl.obj:      symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 symbtabl.obj:      symbtabl.h symbtabl.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 winstyle.obj:      winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
 <<
 
 winstyle.obj:      winstyle.h winstyle.$(SRCSUFF) $(DUMMYOBJ)
         $(cc) @<<
-$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
+$(CPPFLAGS2) /c /Tp $*.$(SRCSUFF)
 <<
 
 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
 <<
 
 DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\