From 8d7dafc91ad68448a481b78df798a7bc85a92a60 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Dec 1998 18:49:20 +0000 Subject: [PATCH] Added OLE automation sample, changed BC++ makefiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/checklst/makefile.b32 | 2 +- samples/dialogs/makefile.b32 | 2 +- samples/docview/makefile.b32 | 2 +- samples/docvwmdi/makefile.b32 | 2 +- samples/grid/makefile.b32 | 2 +- samples/internat/makefile.b32 | 2 +- samples/joytest/makefile.b32 | 2 +- samples/layout/makefile.b32 | 2 +- samples/listctrl/makefile.b32 | 2 +- samples/mdi/makefile.b32 | 2 +- samples/memcheck/makefile.b32 | 2 +- samples/nativdlg/makefile.b32 | 2 +- samples/oleauto/makefile.b32 | 64 ++++++++++ samples/oleauto/makefile.g95 | 37 ++++++ samples/oleauto/makefile.nt | 64 ++++++++++ samples/oleauto/mondrian.ico | Bin 0 -> 766 bytes samples/oleauto/mondrian.xpm | 44 +++++++ samples/oleauto/oleauto.cpp | 220 ++++++++++++++++++++++++++++++++++ samples/oleauto/oleauto.def | 8 ++ samples/oleauto/oleauto.rc | 3 + samples/ownerdrw/makefile.b32 | 2 +- samples/printing/makefile.b32 | 2 +- samples/resource/makefile.b32 | 2 +- samples/splitter/makefile.b32 | 2 +- samples/toolbar/makefile.b32 | 2 +- samples/treectrl/makefile.b32 | 2 +- samples/validate/makefile.b32 | 2 +- 27 files changed, 459 insertions(+), 19 deletions(-) create mode 100644 samples/oleauto/makefile.b32 create mode 100644 samples/oleauto/makefile.g95 create mode 100644 samples/oleauto/makefile.nt create mode 100644 samples/oleauto/mondrian.ico create mode 100644 samples/oleauto/mondrian.xpm create mode 100644 samples/oleauto/oleauto.cpp create mode 100644 samples/oleauto/oleauto.def create mode 100644 samples/oleauto/oleauto.rc diff --git a/samples/checklst/makefile.b32 b/samples/checklst/makefile.b32 index 51646091bd..e591971c85 100644 --- a/samples/checklst/makefile.b32 +++ b/samples/checklst/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXINC = $(WXDIR)\include\msw WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=checklst diff --git a/samples/dialogs/makefile.b32 b/samples/dialogs/makefile.b32 index 9adc7a3a59..0663799ab8 100644 --- a/samples/dialogs/makefile.b32 +++ b/samples/dialogs/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB=$(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=dialogs diff --git a/samples/docview/makefile.b32 b/samples/docview/makefile.b32 index af6ada9c79..e9654bdcb4 100644 --- a/samples/docview/makefile.b32 +++ b/samples/docview/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB=$(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=docview diff --git a/samples/docvwmdi/makefile.b32 b/samples/docvwmdi/makefile.b32 index af6ada9c79..e9654bdcb4 100644 --- a/samples/docvwmdi/makefile.b32 +++ b/samples/docvwmdi/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB=$(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=docview diff --git a/samples/grid/makefile.b32 b/samples/grid/makefile.b32 index 2b65f4cc56..56b22620bb 100644 --- a/samples/grid/makefile.b32 +++ b/samples/grid/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=test diff --git a/samples/internat/makefile.b32 b/samples/internat/makefile.b32 index 8f3f025fe1..ae72e11b4b 100644 --- a/samples/internat/makefile.b32 +++ b/samples/internat/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXINC = $(WXDIR)\include\msw WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=internat diff --git a/samples/joytest/makefile.b32 b/samples/joytest/makefile.b32 index 7720955b44..59869b672a 100644 --- a/samples/joytest/makefile.b32 +++ b/samples/joytest/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=joytest diff --git a/samples/layout/makefile.b32 b/samples/layout/makefile.b32 index b392b020db..bbb841c22d 100644 --- a/samples/layout/makefile.b32 +++ b/samples/layout/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=layout diff --git a/samples/listctrl/makefile.b32 b/samples/listctrl/makefile.b32 index 529b8e0844..21dcf3486f 100644 --- a/samples/listctrl/makefile.b32 +++ b/samples/listctrl/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=listtest diff --git a/samples/mdi/makefile.b32 b/samples/mdi/makefile.b32 index a1f94adf84..fc59709fe3 100644 --- a/samples/mdi/makefile.b32 +++ b/samples/mdi/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=mdi diff --git a/samples/memcheck/makefile.b32 b/samples/memcheck/makefile.b32 index 190001d338..ba9930981a 100644 --- a/samples/memcheck/makefile.b32 +++ b/samples/memcheck/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXINC = $(WXDIR)\include\wx WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=memcheck diff --git a/samples/nativdlg/makefile.b32 b/samples/nativdlg/makefile.b32 index 2bc53604dd..24926e06ea 100644 --- a/samples/nativdlg/makefile.b32 +++ b/samples/nativdlg/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=nativdlg diff --git a/samples/oleauto/makefile.b32 b/samples/oleauto/makefile.b32 new file mode 100644 index 0000000000..b34dea7855 --- /dev/null +++ b/samples/oleauto/makefile.b32 @@ -0,0 +1,64 @@ +# +# File: makefile.b32 +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: +# +# "%W% %G%" +# +# Makefile : Builds oleauto example + +# WXWIN and BCCDIR are set by parent make + +WXDIR = $(WXWIN) +!include $(WXDIR)\src\makeb32.env + +WXLIBDIR = $(WXDIR)\lib +WXINC = $(WXDIR)\include\msw +WXLIB = $(WXLIBDIR)\wx32.lib +LIBS=$(WXLIB) cw32 import32 ole2w32 + +TARGET=oleauto + +!if "$(FINAL)" == "0" +LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib +OPT = -Od +DEBUG_FLAGS= -v +!else +LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib +OPT = -Od +DEBUG_FLAGS = +!endif +CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) + +OBJECTS = oleauto.obj + +$(TARGET).exe: $(OBJECTS) $(TARGET).res + tlink32 $(LINKFLAGS) @&&! +c0w32.obj $(OBJECTS) +$(TARGET) +nul +$(LIBS) +$(TARGET).def +$(TARGET).res +! + +.$(SRCSUFF).obj: + bcc32 $(CPPFLAGS) -c {$< } + +.c.obj: + bcc32 $(CPPFLAGS) -P- -c {$< } + +oleauto.obj: oleauto.$(SRCSUFF) + +$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc + brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET) + +clean: + -erase *.obj + -erase *.exe + -erase *.res + -erase *.map + -erase *.rws + diff --git a/samples/oleauto/makefile.g95 b/samples/oleauto/makefile.g95 new file mode 100644 index 0000000000..9df465495c --- /dev/null +++ b/samples/oleauto/makefile.g95 @@ -0,0 +1,37 @@ +# +# File: makefile.unx +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: (c) 1993, AIAI, University of Edinburgh +# +# "%W% %G%" +# +# Makefile for oleauto example (UNIX). + +WXDIR = ../.. + +# All common UNIX compiler flags and options are now in +# this central makefile. +include $(WXDIR)/src/makeg95.env + +OBJECTS = $(OBJDIR)/oleauto.$(OBJSUFF) $(OBJDIR)/oleauto_resources.$(OBJSUFF) + +all: $(OBJDIR) oleauto$(GUISUFFIX)$(EXESUFF) + +wx: + +$(OBJDIR): + mkdir $(OBJDIR) + +oleauto$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB) + $(CC) $(LDFLAGS) -o oleauto$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(LDLIBS) + +$(OBJDIR)/oleauto.$(OBJSUFF): oleauto.$(SRCSUFF) + $(CC) -c $(CPPFLAGS) -o $@ oleauto.$(SRCSUFF) + +$(OBJDIR)/oleauto_resources.o: oleauto.rc + $(RESCOMP) -i oleauto.rc -o $(OBJDIR)/oleauto_resources.o $(RESFLAGS) + +clean: + rm -f $(OBJECTS) oleauto$(GUISUFFIX).exe core *.rsc *.res diff --git a/samples/oleauto/makefile.nt b/samples/oleauto/makefile.nt new file mode 100644 index 0000000000..204225909d --- /dev/null +++ b/samples/oleauto/makefile.nt @@ -0,0 +1,64 @@ +# +# File: makefile.nt +# Author: Julian Smart +# Created: 1993 +# Updated: +# Copyright: (c) 1993, AIAI, University of Edinburgh +# +# "%W% %G%" +# +# Makefile : Builds oleauto example (MS VC++). +# Use FINAL=1 argument to nmake to build final version with no debugging +# info + +# Set WXDIR for your system +WXDIR = $(WXWIN) + +WXUSINGDLL=0 + +!include $(WXDIR)\src\ntwxwin.mak + +THISDIR = $(WXDIR)\samples\oleauto +PROGRAM=oleauto + +OBJECTS = $(PROGRAM).obj + +$(PROGRAM): $(PROGRAM).exe + +all: wx $(PROGRAM).exe + +wx: + cd $(WXDIR)\src\msw + nmake -f makefile.nt FINAL=$(FINAL) + cd $(THISDIR) + +wxclean: + cd $(WXDIR)\src\msw + nmake -f makefile.nt clean + cd $(THISDIR) + +$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res + $(link) @<< +-out:$(PROGRAM).exe +$(LINKFLAGS) +$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res +$(LIBS) +<< + + +$(PROGRAM).obj: $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ) + $(cc) @<< +$(CPPFLAGS) /c /Tp $*.$(SRCSUFF) +<< + +$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc + $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc + + +clean: + -erase *.obj + -erase *.exe + -erase *.res + -erase *.map + -erase *.sbr + -erase *.pdb diff --git a/samples/oleauto/mondrian.ico b/samples/oleauto/mondrian.ico new file mode 100644 index 0000000000000000000000000000000000000000..2310c5d275a87af295d5ea8dc79ea417a5e74c53 GIT binary patch literal 766 zcmZQzU<5)11px*Sc)`TLAO@s0fLH;D9e|jTfdxnc0Z + +#ifndef __WXMSW__ +#error "Sorry, this sample works under Windows only." +#endif + +// ---------------------------------------------------------------------------- +// ressources +// ---------------------------------------------------------------------------- +// the application icon +#if defined(__WXGTK__) || defined(__WXMOTIF__) + #include "mondrian.xpm" +#endif + +// ---------------------------------------------------------------------------- +// private classes +// ---------------------------------------------------------------------------- + +// Define a new application type, each program should derive a class from wxApp +class MyApp : public wxApp +{ +public: + // override base class virtuals + // ---------------------------- + + // this one is called on application startup and is a good place for the app + // initialization (doing it here and not in the ctor allows to have an error + // return: if OnInit() returns false, the application terminates) + virtual bool OnInit(); +}; + +// Define a new frame type: this is going to be our main frame +class MyFrame : public wxFrame +{ +public: + // ctor(s) + MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size); + + // event handlers (these functions should _not_ be virtual) + void OnQuit(wxCommandEvent& event); + void OnAbout(wxCommandEvent& event); + void OnTest(wxCommandEvent& event); + +private: + // any class wishing to process wxWindows events must use this macro + DECLARE_EVENT_TABLE() +}; + +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +// IDs for the controls and the menu commands +enum +{ + // menu items + OleAuto_Quit = 1, + OleAuto_About, + OleAuto_Test, + + // controls start here (the numbers are, of course, arbitrary) + OleAuto_Text = 1000, +}; + +// ---------------------------------------------------------------------------- +// event tables and other macros for wxWindows +// ---------------------------------------------------------------------------- + +// the event tables connect the wxWindows events with the functions (event +// handlers) which process them. It can be also done at run-time, but for the +// simple menu events like this the static method is much simpler. +BEGIN_EVENT_TABLE(MyFrame, wxFrame) + EVT_MENU(OleAuto_Quit, MyFrame::OnQuit) + EVT_MENU(OleAuto_About, MyFrame::OnAbout) + EVT_MENU(OleAuto_Test, MyFrame::OnTest) +END_EVENT_TABLE() + +// Create a new application object: this macro will allow wxWindows to create +// the application object during program execution (it's better than using a +// static object for many reasons) and also declares the accessor function +// wxGetApp() which will return the reference of the right type (i.e. MyApp and +// not wxApp) +IMPLEMENT_APP(MyApp) + +// ============================================================================ +// implementation +// ============================================================================ + +// ---------------------------------------------------------------------------- +// the application class +// ---------------------------------------------------------------------------- + +// `Main program' equivalent: the program execution "starts" here +bool MyApp::OnInit() +{ + // Create the main application window + MyFrame *frame = new MyFrame("OleAuto wxWindows App", + wxPoint(50, 50), wxSize(450, 340)); + + // Show it and tell the application that it's our main window + // @@@ what does it do exactly, in fact? is it necessary here? + frame->Show(TRUE); + SetTopWindow(frame); + + // success: wxApp::OnRun() will be called which will enter the main message + // loop and the application will run. If we returned FALSE here, the + // application would exit immediately. + return TRUE; +} + +// ---------------------------------------------------------------------------- +// main frame +// ---------------------------------------------------------------------------- + +// frame constructor +MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) + : wxFrame((wxFrame *)NULL, -1, title, pos, size) +{ + // set the frame icon + SetIcon(wxICON(mondrian)); + + // create a menu bar + wxMenu *menuFile = new wxMenu; + + menuFile->Append(OleAuto_Test, "&Test Excel Automation..."); + menuFile->Append(OleAuto_About, "&About..."); + menuFile->AppendSeparator(); + menuFile->Append(OleAuto_Quit, "E&xit"); + + // now append the freshly created menu to the menu bar... + wxMenuBar *menuBar = new wxMenuBar; + menuBar->Append(menuFile, "&File"); + + // ... and attach this menu bar to the frame + SetMenuBar(menuBar); + + // create a status bar just for fun (by default with 1 pane only) + CreateStatusBar(2); + SetStatusText("Welcome to wxWindows!"); +} + + +// event handlers + +void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) +{ + // TRUE is to force the frame to close + Close(TRUE); +} + +void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) +{ + wxMessageBox("This is an OLE Automation sample", + "About OleAuto", wxOK | wxICON_INFORMATION, this); +} + +/* Tests OLE automation by making the active Excel cell bold, + * and changing the text. + */ +void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event)) +{ + wxMessageBox("Please ensure Excel is running, then press OK.\nThe active cell should then say 'wxWindows automation test!' in bold."); + + wxAutomationObject excelObject, rangeObject; + if (!excelObject.GetInstance("Excel.Application")) + { + if (!excelObject.CreateInstance("Excel.Application")) + { + wxMessageBox("Could not create Excel object."); + return; + } + } + if (!excelObject.PutProperty("ActiveCell.Value", "wxWindows automation test!")) + { + wxMessageBox("Could not set active cell value."); + return; + } + if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE)) + { + wxMessageBox("Could not put Bold property to active cell."); + return; + } +} + diff --git a/samples/oleauto/oleauto.def b/samples/oleauto/oleauto.def new file mode 100644 index 0000000000..c722a64e9a --- /dev/null +++ b/samples/oleauto/oleauto.def @@ -0,0 +1,8 @@ +NAME OleAuto +DESCRIPTION 'OLE Automation wxWindows Sample' +EXETYPE WINDOWS +STUB 'WINSTUB.EXE' +CODE PRELOAD MOVEABLE DISCARDABLE +DATA PRELOAD MOVEABLE MULTIPLE +HEAPSIZE 4048 +STACKSIZE 16000 diff --git a/samples/oleauto/oleauto.rc b/samples/oleauto/oleauto.rc new file mode 100644 index 0000000000..7655c62a4c --- /dev/null +++ b/samples/oleauto/oleauto.rc @@ -0,0 +1,3 @@ +mondrian ICON "mondrian.ico" +#include "wx/msw/wx.rc" + diff --git a/samples/ownerdrw/makefile.b32 b/samples/ownerdrw/makefile.b32 index ad4d7fffa8..b763889b14 100644 --- a/samples/ownerdrw/makefile.b32 +++ b/samples/ownerdrw/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXINC = $(WXDIR)\include\msw WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=ownerdrw diff --git a/samples/printing/makefile.b32 b/samples/printing/makefile.b32 index a27c4e2da8..de2e4ce0f2 100644 --- a/samples/printing/makefile.b32 +++ b/samples/printing/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=printing diff --git a/samples/resource/makefile.b32 b/samples/resource/makefile.b32 index 6780eb5ec3..62381479eb 100644 --- a/samples/resource/makefile.b32 +++ b/samples/resource/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=resource diff --git a/samples/splitter/makefile.b32 b/samples/splitter/makefile.b32 index 886b39eddc..9835e6dbfb 100644 --- a/samples/splitter/makefile.b32 +++ b/samples/splitter/makefile.b32 @@ -17,7 +17,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXINC = $(WXDIR)\include\msw WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=test diff --git a/samples/toolbar/makefile.b32 b/samples/toolbar/makefile.b32 index 9f32c974ba..cb2d9a262a 100644 --- a/samples/toolbar/makefile.b32 +++ b/samples/toolbar/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=test diff --git a/samples/treectrl/makefile.b32 b/samples/treectrl/makefile.b32 index 0dddc9cdf8..618f2c3092 100644 --- a/samples/treectrl/makefile.b32 +++ b/samples/treectrl/makefile.b32 @@ -16,7 +16,7 @@ WXDIR = $(WXWIN) WXLIBDIR = $(WXDIR)\lib WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=treetest diff --git a/samples/validate/makefile.b32 b/samples/validate/makefile.b32 index ebadbaf433..c12fa781e2 100644 --- a/samples/validate/makefile.b32 +++ b/samples/validate/makefile.b32 @@ -19,7 +19,7 @@ WXINC = $(WXDIR)\include\msw WXBASESRC = $(WXDIR)\src\base WXBASEINC = $(WXDIR)\include\base WXLIB = $(WXLIBDIR)\wx32.lib -LIBS=$(WXLIB) cw32 import32 +LIBS=$(WXLIB) cw32 import32 ole2w32 TARGET=validate -- 2.45.2