Difference between revisions of "How to setup old Borland C for use with eComStation Toolkit"

From EDM2
Jump to: navigation, search
(Installing the Toolkit)
(Installing the Toolkit)
Line 41: Line 41:
 
available and working:
 
available and working:
  
SET HELP=Toolkit\Help;%HELP%
+
SET HELP=Toolkit\Help;%HELP%<br>
SET BOOKSHELF=Toolkit\BOOK;%BOOKSHELF%
+
SET BOOKSHELF=Toolkit\BOOK;%BOOKSHELF%<br>
SET HELPNDX=EPMKWHLP.NDX;%HELPNDX%
+
SET HELPNDX=EPMKWHLP.NDX;%HELPNDX%<br>
SET IPFC=Toolkit\IPFC;%IPFC%
+
SET IPFC=Toolkit\IPFC;%IPFC%<br>
SET CPREF=CP1.INF+CP2.INF+CP3.INF
+
SET CPREF=CP1.INF+CP2.INF+CP3.INF<br>
SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF
+
SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF<br>
SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF
+
SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF<br>
SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF
+
SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF<br>
SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF
+
SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF<br>
SET PATH=Toolkit\Bin;%PATH%
+
SET PATH=Toolkit\Bin;%PATH%<br>
  
 
After this all applied and system is rebooted the toolkit files are ready to work with.
 
After this all applied and system is rebooted the toolkit files are ready to work with.

Revision as of 17:25, 29 December 2004

By Anakor

Introduction

Back in 1984 Borland Int. had released the last version 2.0 of their Borland C/C++ for OS/2 Compiler. It came with OS/2 2.0 header files and documentation. That seems to be very outdated.

In my opinion the Borland compiler is a good compiler for beginners or small projects. It has a nice GUI and the great Ressource Workshop. But we have to deal with these problems:

First, the headers had no knowledge about MMOS2, so it isn't possible to use any of the MMOS2 Functions with the original files. Second, IBM had changed several things in the header files back in Warp 4 days. Since then, the Borland Compiler isn't supported anymore in the headers.

But believe it or not, were's a will there's a way.


Installing the Toolkit

Our first step to get these working, is to install the toolkit from the eComStation 1.1 Disk 2. The Toolkit comes with an install programm so this thread is pretty simple. After install and reboot is done, your config.sys will be supplied with various SET statements and other stuff.

For those of you don't want to messed up the config.sys and favourite a small installation I recommend to not use the supplied tkinst program. Instead you should simply copy the required files by hand to a directory of your choice. You should proceed through following steps:

1. Create a directory tree to place the toolkit files in:

toolkit ──┐

         h
         book
         help
         ipfc
         bin

Create this tree by hand on your HD. We don't need any other directories.

2. Copy all files and directories available in source\h from your toolkit source to your previously created directory toolkit\h.

3. Copy all Onlinebook files available in source\book from your toolkit source to toolkit\book. This is only the documentation, so this isn't a must.

4. Copy all files available in source\ipfc from your toolkit source to toolkit\ipfc. These are help compiler files, so it is required only if you want create help files using the IPF-Compiler.

5. Copy ipfc.exe in source\bin from your toolkit source to toolkit\bin. The ipfc executeable is required only if you want create help files.

6. Check and/or edit your config.sys. Make shure these settings are available and working:

SET HELP=Toolkit\Help;%HELP%
SET BOOKSHELF=Toolkit\BOOK;%BOOKSHELF%
SET HELPNDX=EPMKWHLP.NDX;%HELPNDX%
SET IPFC=Toolkit\IPFC;%IPFC%
SET CPREF=CP1.INF+CP2.INF+CP3.INF
SET GPIREF=GPI1.INF+GPI2.INF+GPI3.INF+GPI4.INF
SET MMREF=MMREF1.INF+MMREF2.INF+MMREF3.INF
SET PMREF=PM1.INF+PM2.INF+PM3.INF+PM4.INF+PM5.INF
SET WPSREF=WPS1.INF+WPS2.INF+WPS3.INF
SET PATH=Toolkit\Bin;%PATH%

After this all applied and system is rebooted the toolkit files are ready to work with.

Installing the Compiler

to be continued