]> git.saurik.com Git - wxWidgets.git/commitdiff
Small changes for VC++ 4 compilation
authorJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2000 21:25:27 +0000 (21:25 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2000 21:25:27 +0000 (21:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dialup.h
samples/makefile.vc
samples/oleauto/oleauto.cpp
samples/sockets/client.cpp
samples/typetest/typetest.cpp

index cfd3dd802ba8ec9649044a89d001e446b569cadf..ecd17efbe5e2c918ea3a4b9fa05841c6b784d662 100644 (file)
@@ -177,7 +177,7 @@ public:
 };
 
 // the type of dialup event handler function
 };
 
 // the type of dialup event handler function
-typedef void (wxObject::*wxDialUpEventFunction)(wxDialUpEvent&);
+typedef void (wxEvtHandler::*wxDialUpEventFunction)(wxDialUpEvent&);
 
 // macros to catch dialup events
 #define EVT_DIALUP_CONNECTED(func) { wxEVT_DIALUP_CONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
 
 // macros to catch dialup events
 #define EVT_DIALUP_CONNECTED(func) { wxEVT_DIALUP_CONNECTED, -1, -1, (wxObjectEventFunction) (wxEventFunction) (wxDialUpEventFunction) & func, NULL},
index 05db69ab34b97bdd3a3180910747ad2ac5533815..999eccf234f4538f6a009d483a8febc7716a9067 100644 (file)
@@ -102,8 +102,10 @@ all:
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\nativdlg
         nmake -f makefile.vc FINAL=$(FINAL)
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\nativdlg
         nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(COMPIL)"==""
         cd $(WXDIR)\samples\dialup
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\dialup
         nmake -f makefile.vc FINAL=$(FINAL)
+!endif
         cd $(WXDIR)\samples\notebook
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\oleauto
         cd $(WXDIR)\samples\notebook
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\oleauto
@@ -134,8 +136,10 @@ all:
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\splitter
         nmake -f makefile.vc FINAL=$(FINAL)
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\splitter
         nmake -f makefile.vc FINAL=$(FINAL)
+!if "$(COMPIL)"==""
         cd $(WXDIR)\samples\tab
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\tab
         nmake -f makefile.vc FINAL=$(FINAL)
+!endif
         cd $(WXDIR)\samples\taskbar
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\text
         cd $(WXDIR)\samples\taskbar
         nmake -f makefile.vc FINAL=$(FINAL)
         cd $(WXDIR)\samples\text
index 05e9da16ad510c0f2fcd19d32a163161d0242291..b4021b93ae9cba88aea52a3d12bb9004a1f78323 100644 (file)
@@ -211,10 +211,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
                wxMessageBox("Could not set active cell value.");
                return;
        }
                wxMessageBox("Could not set active cell value.");
                return;
        }
-       if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE))
+#ifdef HAVE_BOOL
+       if (!excelObject.PutProperty("ActiveCell.Font.Bold", wxVariant((bool) TRUE)) )
        {
                wxMessageBox("Could not put Bold property to active cell.");
                return;
        }
        {
                wxMessageBox("Could not put Bold property to active cell.");
                return;
        }
+#endif
 }
 
 }
 
index 7ba1dd698f4ee03ac2dff1f37eeb588229de5bb8..2240786c198749f99a7f076a9f2a404e755b046c 100644 (file)
@@ -556,7 +556,7 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event))
   wxYield();
 
   // Get the data
   wxYield();
 
   // Get the data
-  wxFileOutputStream sout("test.url");
+  wxFileOutputStream sout(wxString("test.url"));
   data->Read(sout);
   m_text->AppendText(_("Results written to file: test.url\n"));
   m_text->AppendText(_("Done.\n"));
   data->Read(sout);
   m_text->AppendText(_("Results written to file: test.url\n"));
   m_text->AppendText(_("Done.\n"));
index 389666843507f2d8e97b7e06d00fc053bc07fd8d..fd0c99b1e9c86efdb1eec7b71f1f8301abf3597a 100644 (file)
@@ -178,9 +178,12 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
     tmp.Printf( _T("Float: %f\n"), f );
     textCtrl.WriteText( tmp );
 
     tmp.Printf( _T("Float: %f\n"), f );
     textCtrl.WriteText( tmp );
 
+    // This doesn't compile (at least with VC++ 4)
+#if 0
     std_file_input >> str;
     tmp.Printf( _T("String: %s\n"), str.c_str() );
     textCtrl.WriteText( tmp );
     std_file_input >> str;
     tmp.Printf( _T("String: %s\n"), str.c_str() );
     textCtrl.WriteText( tmp );
+#endif
 
     textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
 
 
     textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );