Borland Turbo C++, C++, and C++Builder Install Frequently Asked Questions
General
Borland C++ 4.5 and Turbo C++ 4.5 for Windows
Turbo C++ for DOS 3.0
Borland C++ 5.x
C++Builder


General
How do I know if I meet the system requirements for installation?
The minimum system requirements are listed on the product box and in the install.txt located on the CD of each Borland C++ product you wish to install. It is necessary that you meet these requirements before attempting to install or you will encounter errors. If you install Borland C++ on a drive other than the drive on which Windows resides, check to be sure that you have more than enough disk space free on your Windows drive [usually C:\].
How do I install Borland products?
To install Borland products directly from the CD just put the cd in and when the autorun launcher comes up choose the product you would like to install.

Product Folders Location Individual Installs
----------------------------------------------------------------------------------------------------------------------------
BCB 4 Install & Runimage CD:\Install & Runimage CD:\Install\Setup.exe
BCB 1 & 3 Setup CD:\Setup CD:\Setup\BCB\Setup.exe
BC5 to 5.02 Setup CD:\Setup CD:\Setup\BC5\Setup.exe
*BC4.5 to 4.52 Install CD:\Install CD:\Install\BC45\Install.exe
*TCWin45 Install CD:\Install CD:\Install\Install

*Predates the autorunning installation programs. In order to run the install, go to Start | Run, and type: your CD-ROM drive letter\install\install.exe. Or navigate through Explorer to the Install.exe or the Setup.exe and double click.
How do I do a Hard Drive installation?
Copy the entire Install or Setup directory into a temporary directory onto your local hard drive (C:\, D:\ etc.). To copy in windows explorer, simply drag and drop the folder onto the hard drive. If you want to use "My Computer", right click on the folder you want to copy and select "Copy". Then navigate to the hard drive and right click on some blank space and select "Paste". To copy from DOS, choose "re-start in MSDOS" from the shutdown menu . Copy the installation directory using XCOPY in DOS and re-start in windows to install from your hard drive. The Install or Setup directory contains all the files needed for a successful installation. Run the Install.exe or Setup.exe [the one with the colorful icon] located in the Install or Setup directory. Another way to install is in Safemode or VGAmode, after the Install or Setup directory has been successfully copied to your hard drive.
What is Safemode or VGAmode?
Safe mode is the method for booting into a simple system configuration under Windows 95/98. VGA mode is the diagnostic mode under Windows NT. When Windows boots into Safe mode or VGA mode, it uses basic default settings that will run the operating system with minimal functionality. Meaning it loads a bare bones operating system. One of the most noticeable changes is on your screen. You will notice that when you are in this diagnostic mode that the colors and icons look strange. Don't worry, this is only temporary. When you reboot in normal mode the screen will appear as it should.
Why does Safe mode or VGA mode help?
In many instances, the errors that you may get during the install will be caused by a conflict with other drivers or software programs running on your system. Safe mode or VGA mode solves many of these issues. Hardware, like your CD-ROM drive, will not function in Safe mode or VGA mode because the drivers are not loaded which is why the installation directory must be successfully copied to your hard drive before attempting to install. It is recommended that you make sure there are no other programs running in the background [such as anti-virus software] before installing any Borland product. Safe mode or VGA mode does not keep all software programs from running. You must exit some programs manually, restart your machine in Safe mode or VGA mode and then run the install.
How do I do a Safe mode install?
There are three steps to doing a Safe mode install:

1. First you must copy the installation folder into onto your hard drive before you reboot into Safe mode. You are going to need some extra hard drive space, so along with the space needed for the installation, you will also need the space for the setup folder that you are going to copy. This folder contains all the files needed to install everything available on the CD. If you do not have enough space on your hard drive to copy the complete folder, residing within the setup folder there are separate folders for each install. For instance, The BC5 folder holds the compiler install and the ISX folder contains the Install Shield Express install.
Note: If you are going to copy only the BC5 folder, you need to copy it into a temporary folder on your hard drive because the installer will attempt to install the program in a "BC5" folder.

2. Next reboot your machine into Safe mode. Rebooting your machine into Safe mode is not difficult. There are two ways to do this. After the copying process is done, you need to go to your Start menu and select "Shut Down". A menu will appear and you need to choose "Restart the computer." Basically at this point, the machine shuts itself off, but then immediately restarts. As it restarts you will be looking at a black screen. First thing that will come up is some bios and copyright information. Then it will say "Starting Windows 95/98". As soon as you see it say "Starting Windows 95/98" you need to hit the F8 key on your keyboard. You will only have a few seconds to hit the key because you need to catch it before it begins the startup process, so watch carefully. When you hit F8, a menu should appear that will give you eight options. Number three will be "Safe mode". Type in 3 and hit enter and this will boot your machine into Safe mode. Another way to boot into Safe mode is to hold down the shift key after you click "Restart the computer". After the machine reboots you need to hold the shift key down until a few seconds after the blue "Windows 95/98" graphic comes up. This should take you into Safe mode.

Safe mode will take several minutes for it to boot up, probably more than you're used to. This is normal because your machine is bypassing its usual startup files. When your machine finishes booting up you will get a dialog box that says, "Windows is running in Safe mode. ..." Hit OK. Notice that in each corner of your screen it says Safe mode.

3. Run the installation program now that you are in Safe mode. All you need to do is navigate to the folder that you have copied over onto your hard drive, open the installation folder and access the correct folder for the install that you want. For example, if you are attempting to install BC5.02, you would open the Setup folder, open the BC5 folder and scroll down until you find the Setup.exe. (It may actually only say Setup, depending on how you have the machine configured) Setup.exe will have a bright colorful icon, which makes it easier to find. Double click on the icon and you are on your way.
Note: For more information on Safe mode Installation, please refer to the install.txt. However, note that a Windows 95/98 Safe mode installation is different than a Windows 3.1 or a DOS "clean boot". You do not need to do a "clean boot" on a Windows 95/98 system since the operating system provides us a diagnostic mode (Safe mode).
How do I do a VGA mode install (under Windows NT only)?
Follow step 1 under the the Safe mode install. To reboot into VGA mode under Windows NT:
Press Ctrl_Alt_Del and click Shutdown
What do I do if I am getting missing or corrupted file messages?
Search your system for the files listed in the error message by going to Start | Find | Files or Folders...
Type the name of the file, Look in: your local hard drive and click Find now. If the file(s) are not on your system then copy them from the Borland CD to your hard drive. If the file(s) are on your hard drive then try checking the path to make sure the files are in the correct directories. If you still get the error try copying the same file(s) from the Borland cd-rom over the file(s) on your system, replacing them and removing the Read-Only attributes.
How do I determine if I have a bad CD?
It is extremely unusual to have received a CD that is corrupt. In many cases, the CD-ROM itself is not reading the CD properly. One of the following actions may correct the problem, or allow the installation to proceed:

1. Try a hard drive installation. Make sure that if you can't copy files/folders in windows, you try to copy them in DOS. More information on how to do this is located under the hard drive installation instructions.

2. If the CD-ROM is external, try turning the CD-ROM drive on it's side. As strange as this may sound, in many cases it will change the behavior.

3. If you are using Windows drivers, switch to the manufacturer's CD-ROM drivers (try the reverse if you are using the manufacturer's drivers). Also, check with your manufacturer to obtain a more recent copy of their driver.

4. A possible cause may be speed synchronization problems between the processor and CD-ROM. Try slowing down your microprocessor by taking your machine out of turbo mode and disabling any software that speeds your machine up, such as SmartDrive. If necessary, you can also disable BIOS caching and shadow RAM.

5. Compare the file size of any files that you suspect are corrupt to the file size of those on your CD. If you can copy the installation directory from the CD to the hard drive, and the file sizes match, then the CD is most likely fine -- the problem is elsewhere.

6. If the CD-ROM drive simply will not read from the CD at all (and works on other CDs), then replacing the CD with an identical CD will probably not work either. Alternately, you could try using another CD-ROM drive (or copy the files over the network from another machine).

7. Be sure that this system is using an Intel 80x86- this is the only processor we will support.
Will I have problems installing under Windows 98?
The only Borland C++ compiler officially supported under Windows 98 is Borland C++ Builder 4.0. All other products predate the release of the Windows 98 operating system and have not been thoroughly tested by our QA department.
I get the same error when installing my Borland C++ compiler in Windows 98 Safe mode as I do in Normal mode. This used to work under Windows 95. What changed?
Unlike Windows 95, Safe mode under Windows 98 loads the current video driver. This can cause problems when a video driver is conflicting with your software. To get around this you will have to manually change the video driver in the Control Panel | Display settings. It is suggested that you use the default VGA driver provided by Microsoft. For information on how to do this or where to get the VGA driver, contact your computer manufacturer or Microsoft.


Back to the top.

Borland C++ 4.5x and Turbo C++ 4.5 for Windows
I put the CD in and nothing happened.
Borland C++ 4.5x and Turbo C++ 4.5 were written for Windows 3.1, and at the time, it was uncommon to have autorunning installation programs. In order to run the install, go to Start | Run, and type: d:\install\install.exe (where d represents your CD-ROM drive -- if you have a different drive letter, insert a different drive letter for d.). Choose "ok" and the install program should start.
After I close the Install.txt, only a blue screen is left on the screen and the install does not continue. If I end the task and try to restart the installation, I get an access violation which forces me to close down the Setup. What can I do?.
Reboot your computer and run the Setup, skipping the Install.txt
How can I set up a cd-rom only install so that I do not need the cdrom in the drive when I start my computer?
1. Do a normal cd-rom only install

2. Look at your system.ini file in the windows\system directory. under the [386enh] section, there will be
some statements pointing at the cdrom drive. You need to copy the files that are pointed at onto your
hard drive and change the statement so that it points at your hard drive instead of the cd-rom drive.

3. Look at your path statement. If there is any reference to your cd-rom drive in your path, you will need to have any cd in your drive. If you remove this statement, it will no longer look to your cd-rom drive.
What can I do if I get an error when I try to run my online books?
If the TCWin4.5 Online Books install doesn't work. Here's how you do it manually:

1. Go to the Adobe website and install Acroread.

2. Copy over the entire Books directory from the CD onto your hard drive under the root directory.

3. Start up the |start | settings | taskbar | start menu programs | advanced| and right click on the Turbo C++ Online Books and go to properties.

4. Click the shortcut tab and make sure that the target says:
c:\acroread\acroread.exe c:\books\startup.pdf (if hard drive letter is different then replace c: with the appropriate drive letter)
Why do I get floating point stack overflow or zeros streamed in when I try to read floats?
At about the same time that Windows 95 shipped, some Borland C++ compilers that used the overloaded >> operator to read floats or doubles started to fail. At first, it was thought that it was System Agent and sage.dll because removing this or applying the Windows 95 Service Packs usually made the problem go away. But really it wasn't sage.dll but a dll used by sage.dll that was causing the problem. This dll is called msvcrt20.dll (msvcrt.dll on NT ) and the problem is that initialization code in this dll alters precision values in the Floating Point processor thus affecting the operator >> that reads in floats or doubles. To workaround this problem try the following:

1. If you are using Windows 95 apply all Microsoft Service Packs.

2. If that doesn't do it, consider other applications that load this dll. OCX's might use it and actually Windows itself might use it for common dialog boxes.

3. Try using the RTL function _fpreset() to reset the state of the FPU control word

For more information about msvcrt20.dll, and an example of how to use _fpreset():
http://www.borland.com/devsupport/bcppbuilder/ti/TI814.html
Note: Although this document says a fix will be forthcoming, there will be no fix for this on our older products; This is fixed in our latest C++ compilers.

4. The latest version of McAffee virus scan is yet another application which conflicts with the_fpreset() in Windows, it has been reported that turning this program off fixes this problem. This can happen with other applications and in order to figure out what they may be, start your machine in Safe mode and attempt to determine what is running in Normal mode that is not running in Safe mode.
When I try to install Borland C++ 4.5x I get the error "bwcc32.dll is being used by another program or
Cannot write to bwcc32.dll."
1. Remove programs from your startup menu, if any. Make sure no programs are running in the background while you are installing.

2. Rename bwcc32.dll to bwcc32.bak and check under it's Properties to make sure it's not read-only.

3. Try reinstalling. If that doesn't work, reinstall under Safe mode
How do I uninstall Borland C++ 4.5x and Turbo C++ 4.5 for Windows?
You need to remove all references to BC 4.5x or TC 4.5 in your path statement. You can do this by going to the Start button, and then going to Run... At the prompt, type: sysedit and click OK. You should see a parent window and several child windows. The window in front should be your autoexec.bat.

Remove this line from your autoexec.bat:
path=C:\TCWIN45\BIN;%path%
path=C:\BC45\BIN;%path%

In the system.ini window, scroll to the [386Enh] section and remove theline:
device=c:\tcwin45\bin\tddebug.386
device=c:\bc45\bin\tddebug.386

There may be a line in win.ini or system.ini that says
load=c:\tcw45\pipeline\remind.exe
load=c:\bc45\pipeline\remind.exe

This should be removed, as it will prevent you from deleting the BC 4.5x or TC4.5 directory. Close the parent window and save the changes you just made when prompted. Reboot windows, then delete the BC 4.5x or TC 4.5 directory. After you do that, BC 4.5x or TC4.5 should be completely gone from your system



Back to the top.

Turbo C++ for DOS 3.0
What is a clean boot, and why is it useful?
A clean boot is a way to configure your DOS or Windows 3.1 system to turn off all unnecessary drivers and most automatically loaded software. This is useful if you're having general installation problems, such as errors during the installation. You should NEVER do a clean boot under Windows 95/98/NT or later.
More information on clean booting is available in the Install.txt
My Turbo C++ 3.0 installation stops at Disk 3, with an error about finding or writing the help files.
First, try a hard drive installation. This fixes the problem in a majority of cases. If that doesn't work, try a manual installation.
How do I do a hard drive installation Turbo C++ 3?
Create a new directory on your hard drive. If you don't have a temp directory, name it 'temp', otherwise, name it 'install' or something similar. Inside this directory, create five different directories named Disk1, Disk2, Disk3, Disk4, Disk5. Copy the files from each disk into their respective directories.

Now run the install.exe program from within the Disk1 directory. When it asks for the starting directory, type in the 'temp' (or 'install') directory that you created. If you do that correctly, it should have no problem finding the data on each disk.
How do I do a manual installation of Turbo C++ 3?
The manual installation instructions for Turbo C++ 3 can be found on our website at:
http://borweb.borland.com/devsupport/bcppbuilder/ti/TI3299C.html
I am getting dpmi server errors. What should I do?
Run dpmiinst.exe, which in a default installation is located in the \TC\BIN directory.
I want to print either my output or my code from Turbo C++ 3, and it isn't working.
In order to print your output, pipe it into a file. To print your code, open it in a
text editor such as Notepad and print it from there.



Back to the top.

Borland C++ 5.x
What do I do when I get a checksum error on a help file installing Borland C++ 5.x?
A checksum error means that when Windows 95 is attempting to ensure that files are not corrupted, it encounters a problem.
Try:
1. Hard drive install (read install.txt section on this).

2. Hard drive install with Safe mode/VGA Mode (read install.txt section on this as well)

3. Clean the CD with a tissue and make sure that no dust or residue resides on it.

4. If you have an external CD-ROM drive, occasionally it is useful to turn it on it's side. Some drives will change their behavior.

If none of these work, call and get a replacement CD from Customer Service: (800) 331-0877.
When installing Borland C++ 5.02 from the CD I get an error "Cannot create destination file .". What does this mean and how do I get around it?
This is most frequently caused by these three situations:

1. If the error states a file name that it cannot create, then check that file on the hard drive (most likely a .dll in the system32 directory). make sure that the Read-Only attribute for that file is not set. Check all the Read-Only attributes in the system32 directory, and make sure that they are not set.

2. If the drive where the temp directory environment variable is set to is low on disk space then free up some disk space or change the temp drive to another drive on the system.

3. Check to see if the file is already on the hard drive. If it is and the attributes are not set to Read-Only, rename the file, and then continue with the install. Chances are that you will not be able to rename the file, if this is the case reboot into DOS mode and rename it from there.
I'm having problems uninstalling Borland C++ 5.x.
First try using Add/Remove Programs in the Control Panel. If that doesn't work, open up a DOS prompt and go to the BC5 directory. Type 'unreg -d' (this removes references to BC5 from the registry) Then remove references to BC5 from the sys.ini, autoexec.bat and win.ini files. Then, in DOS, type deltree bc5 (this deletes the BC5 direcory and all subdirectories.)
I get an error: "Illegal Operation: BCW caused an invalid page fault." If I press OK I get a message that says "Can't load rwaddon.dll." After I get past that message, the compiler works fine. What's going on?
This is almost always solved by running c:\BC5\BIN\unreg -d and then reinstalling with the Option: Only Icons/System Files/Registry.
I'm getting all kinds of errors: Corrupt .pak files, Setup.exe is not a valid Win32 application, and similar problems. I've tried doing a hard drive installation and a Safe mode installation already, and neither of those have worked.
You need to do a manual installation. The way to do this is:
1. Copy the BC5 directory off the CD into a Temp directory on your hard drive.

2. Copy the files from either the Win95 or the WinNT directories into the appropriate directories on your hard drive (i.e. all the files from the Win95\System directory into the Windows\System directory on a Windows 95 machine, or all the files from the WinNT directory into the WinNT directory on a WinNT machine.)

3. Run the install and choose the Option: Only Icons/System Files/Registry.
I used the index.html page on the Companion CD That comes with Borland C++ Builder 4 to try to install BC5, and now I get an Authenticode error (signature not found).
Don't run the install from your web browser. Instead, run the setup from 'My Computer' or from Windows Explorer.
The setup program is located on the CD at:\Inprise\Bc502\BC5\Setup.exe (setup.exe is the one with the colorful icon).
In Borland C++ 5.x I get a red box while I backspace. And all my other keys are messed up.
1. Check the settings in: Options | Enviroment | Scripting | and verify the script path.

2. Close the IDE and go to a dos box.

3. Go to the bc5/bin dir; delete *.bcw, *.dsw,*.dsk, *.mrt, *.mbt, bcwdef.*, *.spx. Don't forget the *.spx in the bin, this is the main suspect.

4. Go to the bc5/script dir; delete *.spx.

5. Open the IDE and verify that it works.

If this fails rename the bc5/script dir to script_old, copy the script directory from the CD, turn off the Read-Only attributes on all the files in the script directory, and then repeat steps 1-5. (This problem is also reportedly caused by having directory names of the style "something.something" in your script path.)
I can install Borland C++ 5.0x and CodeGuard, but I cannot install any of the other addon components for Borland C++ 5. Each time I try to install, the InstallShield gets about 40% or so, and then crashes. It only says that setup is having an error decompressing and copying files. I have plenty of hard disk space.
1. If the hard drive is partitioned, check to see if there is enough free space for InstallShield to copy its temporary files.

2. Try it in safe mode.

3. Delete the c:\temp directory and the c:\windows\temp directory. It is possible that there is a corrupt file in that directory that is not allowing the installation to proceed.
Can I use both Borland C++Builder and Borland C++ 5 on the same machine?
Yes, however there may be issues with the path when using Borland C++ 5. If you make sure that your BC5\BIN directory is in your path before CBUILDER\BIN you should be alright.


Back to the top.

  C++ Builder
I'm using Borland C++ Builder 1.0 and NT 4.0 and when I try to start Builder I get an error: "Invalid Component Library." How can I fix this?
To start Borland C++ Builder, the Spooler Service must be active. Go to Start | Settings | Control Panel | Services | Spooler and click 'Start' to start this service.
Every time I open and close Borland C++ Builder 3.0, even if I don't do anything inside the compiler, I get an Error 216. The compiler seems to be working fine regardless. How can I keep this error from occuring?
Currently there is no documented reason why Error 216 comes up on some systems, but the fix is to put the '-NS' switch on the Borland C++ Builder shortcut. Create a shortcut on your desktop, right-click and go to Properties | Shortcut and in the Target path add a space after the quotation then -NS. Click Apply or OK.

"C:\Program Files\Borland\CBuilder3\Bin\bcb.exe" -NS (for example)
When I start up Borland C++ Builder it freezes on the splash screen and / or the icons on the component palette look corrupted and then it freezes.
If it works in safe mode but not in normal mode then there is a conflict. You video card driver is most likely an early version which was probably less than perfect. You should contact the manufacturer of your machine or video card vendor via the website for updated drivers. In the meantime, you can change your drivers to a generic SVGA driver so that you may see the icons. You would do this through the Control Panel | Display utility. You may alsocontinue to run in Safe mode, which temporarily uses a plain VGA driver. We know that there are issues with the S3 video cards (particularly the S3 Virge) and that Borland C++ Builder has such a conflict you can expect problems with other software as well.

We have a list of workarounds for the S3 Virge card, most of which apply to other cards, as well:
1. Get the latest driver (www.s3.com or your vendor)

2. Start BCB with the -NS switch by adding -NS to the end of the Target path of the shortcut.

3. Play with color depth/resolution 1024x768 in 16 bit color seems to be the worst.

4. Under the [display] section of the system.ini file add the following line: BusThrottle=1 and reboot afterward. If that doesn't work, remove the other entry and add the line: [display]DeviceBitmap = 0

5. Reduce the hardware acceleration for the card.

6. Get the latest DirectX drivers. (probably not needed for Win98 systems)

7. No desktop wallpaper or a wallpaper that is smaller in size has worked.

8. Try to reboot into Safe mode and remove components that you know you won't be using. This will reduce the number of icons loaded at startup
I just installed Borland C++ Builder 3 under Windows NT 4.0 Service Pack 3, and it works fine as Administrator, but ONLY as Administrator. When Users log on, the component palette is empty, and can't link any programs.
1. Copy the CBuilder3 folder from C:\Winnt\Profiles\Administrator\StartMenu\Programs\ and paste it in to C:\Winnt\Profiles\<desired user>\StartMenu\Programs\ (Provided that you have done a default installation.)

2. You must also export two registry keys while logged in as Administrator. These must be exported to an area that is visible to the User Account and this User must be given rights to modify the registry in order to import the keys.

HKEY_CURRENT_USER\Software\Borland\C++Builder\3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Borland\C++Builder\3.0

3. Log in as the desired User and double click on the two .reg files that you created.

Note: This must be done for each User Account.
Whenever I try to run my program, even if it is in the Borland C++ Builder IDE, I get the error "Application must be run in the Builder environment."
It is likely that you used to have either the Trial version or the Learn to Program version installed. Uninstall this through the Control Panel | Add/RemovePrograms and reinstall the full version compiler.
I just installed Borland C++ Builder Professional, and it says that it comes with Local InterBase, but InterBase wasn't installed. How can I install InterBase?
To install Local InterBase, on the CD you first have to go to the Setup directory, and then to the Localib directory. Then, you have to go into the Disk1 directory, and click on Setup.exe.
I tried to compile an existing Borland C++ Builder 3.0 application in Borland C++ Builder 4.0 and got a linker error "unable to locate inet40.lib" and so forth.
The files inet40 and inetdb40 are not in the Professional version. They are part of the WebProducer package that is in the Enterprise version only. When you convert a Borland C++ Builder3 to Borland C++ Builder 4 project the conversion project looks for xxx35.lib (bpi) and converts it to xxx40.lib (bpi). The fix it to open the Project | Options and remove them from the packages line. You also might have to view the make file and manually remove the .lib references.


Back to the top.