Small changes for VC++ 4 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
95bf655c50
commit
69d16e3ef8
@ -177,7 +177,7 @@ public:
|
||||
};
|
||||
|
||||
// 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},
|
||||
|
@ -102,8 +102,10 @@ all:
|
||||
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)
|
||||
!endif
|
||||
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)
|
||||
!if "$(COMPIL)"==""
|
||||
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
|
||||
|
@ -211,10 +211,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -556,7 +556,7 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event))
|
||||
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"));
|
||||
|
@ -178,9 +178,12 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event))
|
||||
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 );
|
||||
#endif
|
||||
|
||||
textCtrl.WriteText( "\nReading from wxFileInputStream:\n" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user