Compiling with Borland

I have built and used wxHatch with several versions of Borland's compiler The free Borland CBuilder 5.5 compiler works very well and is at http://www.borland.com/products/downloads/download_cbuilder.html, - you will need to download the compiler (v5.5) and debugger (5.5), plus the two service patches  - all for free!

1) Build the wxWidgets library if required

Modify your c:\autoexec.bat file to include lines like this: (check if the wxWidgets installer has done it for you)
set wxwin=c:\wxWidgets

To build with Borland, run a command window, go to the %WXWIN%\src\mswdirectory and type:
make -f makefile.b32 clean
make -f makefile.b32
You should find that the %WXWIN%\lib directory now has a set of .lib files.

To build the Styled text system, go to the %WXWIN%\contrib\src\stcdirectory and type:
make -f makefile.b32 clean
make -f makefile.b32
You should find that the %WXWIN%\contrib\lib directory now includes a stc.lib file.

2) Build wxHatch

To build the wxHatch.exe, go to the wxhatch directory and type
make -f makefile.b32 clean
make -f makefile.b32

This will generate wxhatch.exe

3) Using  wxWidgets as a dynamic link library

Using the wxdll means that the compilation time for projects is much reduced, and that the wxhatch.exe and any projects it creates share the same dll, so reducing memory demands. This is how to do it

Modify your c:\autoexec.bat file appending lines like this: (check if the wxWidgets installer has done it for you)
set wxwin=c:\wxWidgets
PATH=%PATH%;%WXWIN%\lib

To build with Borland, run a command window, go to the %WXWIN%\src\mswdirectory and type:
set DLL=1
make -f makefile.b32 clean
make -f makefile.b32
You should find that the %WXWIN%\lib directory now has a wx32d.dll and new.lib files.

To build the Styled text system, go to the %WXWIN%\contrib\src\stcdirectory and type:
make -f makefile.b32 clean
make -f makefile.b32 WXUSINGDLL=1
You should find that the %WXWIN%\contrib\lib directory now includes a stc.lib file.

To build the wxHatch.exe, go to the wxhatchdirectory and type
make -f makefile.b32 clean
make -f makefile.b32 WXUSINGDLL=1

On to using the program