PRODUCT : Borland C++ NUMBER : 1333 VERSION : 3.1 OS : ALL DATE : October 25, 1993 PAGE : 1/5 TITLE : Tips to configure the CD-ROM version of Borland C++. RUNNING BORLAND C++ DIRECTLY FROM CD-ROM ======================================== 1. Add the Borland C++ directory on the CD-ROM to your path: Example: (if your CD-ROM drive is D:) PATH=D:\BORLANDC\BIN;C:\DOS; etc. etc 2. Copy the configuration files in the directory \CONFIG from your CD-ROM to your current working directory on your hard disk. Example: COPY D:\CONFIG\*.* C:\MYWORK 3. Start Borland C++ from your working directory: Example: C: CD \MYWORK BC NOTE:Do not execute Borland C++ from CD-ROM while in the CD-ROM drive directory. You'll get the following error message if you attempt to do so: "Disk full! Not enough swap space." Borland C++ attempts to create a swap file, but since the CD-ROM device is read only, an error is reported. RUNNING DPMIINST FROM CD-ROM ============================ Upon running the compiler you may receive the following message: "DPMI Server Initialization Error: Machine not in database". This message indicates that the DOS extender used by the Borland C++ Compiler needs to perform some tests on your machine to select the appropriate methods to switch to protected mode. ( NOTE: This is a requirement because while BIOS used in the vast array of PC Compatibles are not always 100 % compatible with the IBM BIOS ). A utility, PRODUCT : Borland C++ NUMBER : 1333 VERSION : 3.1 OS : ALL DATE : October 25, 1993 PAGE : 2/5 TITLE : Tips to configure the CD-ROM version of Borland C++ . DPMIINST.EXE, is provided for the extender to configure itself. Where is DPMIINST.EXE?: ====================== DPMIINST.EXE is program in the BIN directory of your compiler that runs a series of tests on your machine to figure out the proper way to enable protected mode on that particular machine. Also in the BIN directory is DPMI16BI.OVL, a database that contains specific information for many different kinds of machines. If your machine is not in this database, you will receive a message such as "machine not in database -- run DPMIINST" upon execution of the compiler. If you are experiencing bizarre behavior with the Borland C++ compiler, such as GP Faults, Exception 13's, keyboard problems, we suggest that you run dpmiinst.exe. How do I run DPMIINST.EXE? ========================== In order to run successfully you must copy the DPMI16BI.OVL file to over to your working directory and execute DPMIINST.EXE from that directory. If it is not, you may re receive the error message: "DPMIINST: cannot find DPMI16BI file: DPMI16BI.OVL" Errors from running DPMIINST ? ============================== You may get one the following error messages when executing DPMIINST.EXE: - "A20 line was already enabled so test is meaningless" - "Cannot find method to enable a20 line" DPMIINST may not run properly if certain V8086 memory managers or shells are active. It is best to boot your machine clean ( without any memory managers, device drivers, or TSR's ) and then run DPMIINST. After successfully running the test you may restore you original configuration. FAST EXECUTION RUNNING FROM CD-ROM ================================== PRODUCT : Borland C++ NUMBER : 1333 VERSION : 3.1 OS : ALL DATE : October 25, 1993 PAGE : 3/5 TITLE : Tips to configure the CD-ROM version of Borland C++ . Running Borland C++ IDE or the command line compiler with the related library and include files located on the CD-ROM may result in a very slow execution. This is due to the slow seek time of the CD device. You can optimize the the speed by XCOPYing all your needed libraries and include files to your working on a hard drive directory (see section "Copying Additional Files from CD-ROM") and updating your Options| Directories paths to reflect your hard drive. COPYING ADDITIONAL FILES FROM CD-ROM ==================================== If you need additional files, you can copy these files using the XCOPY DOS directive directly from the CD-ROM pre- installed directory \BORLANDC. If you want to copy C++ example files, type the following: XCOPY D:\BORLANDC\EXAMPLES\*.* C:\MYWORK /S Note: After copying any project file (.PRJ), be sure to update the paths to the libraries and include files. In the IDE, load the project and select Option|Directories, then enter the appropriate paths. For example: Include Directories: D:\BORLANDC\INCLUDE Library Directories: D:\BORLANDC\LIB RUNNING UNDER WINDOWS ===================== If you would like to run Borland C++ under Windows, XCOPY the entire subdirectory D:\BORLANDC\WINDOWS into your current Windows directory. For example: XCOPY D:\BORLANDC\WINDOWS\*.* C:\WINDOWS /S In addition, make the following modification to the SYSTEM.INI in your Windows directory under the [386Enh] heading: device=tddebug.386 PRODUCT : Borland C++ NUMBER : 1333 VERSION : 3.1 OS : ALL DATE : October 25, 1993 PAGE : 4/5 TITLE : Tips to configure the CD-ROM version of Borland C++ . If you would like a Borland C++ Windows group to be created for you go into Windows and execute File|Run the following command: D:\BORLANDC\BIN\GROUPS.EXE GROUPS.B$$ NOTE: If D: is not your current CD-ROM drive letter, you will first need to edit GROUPS.B$$ located in your windows directory. You need to edit ALL paths in this file to reflect your current CD-ROM drive letter. After your Borland C++ Windows groups is created, you will need to change the properties of two icons. 1. Click once on the BCW icon. 2. Pull down the File menu in the Program Manager and select Properties. 3. Change the working directory to the directory you copied the configuration files to earlier. For example, 'C:\MYWORK'. Press OK. Do the same for the Borland C++ icon. 1. Click once on the Borland C++ icon. 2. Pull down the File menu in the Program Manager and select Properties. 3. Change the Command Line to use the BC.PIF file in your Windows directory. For example, type C:\WINDOWS\BC.PIF 4. Change the Working directory you copied the configuration files to earlier. For example. 'C:\MYWORK'. 5. Change the icon to BC.ICO in your WIndows directory by pressing Change Icon and typing C:\WINDOWS\BC.ICO in the File Name box. Press OK, then press OK again. RUNNING MAKE.EXE ================ If the options set in the file \BORLANDC\BIN\BUILTINS.MAK are not appropriate for your use, copy the file into your current writable DOS directory and modify it. Note that PRODUCT : Borland C++ NUMBER : 1333 VERSION : 3.1 OS : ALL DATE : October 25, 1993 PAGE : 5/5 TITLE : Tips to configure the CD-ROM version of Borland C++ . Borland C++ will automatically look for BUILTINS.MAK first in your current working directory. RUNNING THELP.COM ================= Given that CD are Read-Only medias, THELP will not work when ran directly from the CD-ROM. You must copy the following files from CD-ROM to your working hard drive directory: OWLHELP.TCH TASM.TAH TCHELP.TCH THELP.CFG THELP.COM TVCHELP.TCH WINHELP.TCH You need to edit THELP.CFG to reflect the current location of the help files on your hard drive. DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.