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

Note : 
you can download a prebuilt wxHatch program + wxWidgets  library - see details here

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%\build\msw directory and type:
make -f makefile.bcc clean
make -f makefile.bcc
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\build\stc directory and type:
make -f makefile.bcc clean
make -f makefile.bcc
You should find that the %WXWIN%\contrib\lib directory now includes a stc.lib file.

More detailed instructions are here

2) Build wxHatch

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

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%\build\msw directory and type:
make -f makefile.bcc clean
make -f makefile.bcc -DSHARED=1
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\build\stc directory and type:
make -f makefile.bcc clean
make -f makefile.bcc -DSHARED=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.bcc clean
make -f makefile.bcc -DSHARED=1

On to using the program

wxHatch Home link to wxhatch help index