1. Do a search on your local hard drive(s) and look for a file named "idapi32.dll". On most systems this will be a subdirectory called "BDE". Normally, the full path looks something like this:
C:\Program Files\Borland\Common Files\BDE
or
C:\Program Files\Common files\Borland Shared\BDE
It is usually located on the Windows drive(where Program files will normally be). If nothing turns up, try searching for "id*.dll" (since the idapi32.dll file may be missing). Failing this, search for the file "bdeadmin.exe".
2. If you find one or more directores with these files (id*.dll, idapi32.dll and bdeadmin.exe), delete those directories/folders
3. Run the Windows Registry Editor (regedit.exe). Expand the registry tree to locate the subkey:
[HKEY_LOCAL_MACHINE\Software\Borland].
Locate and delete the "Database Engine" and "BLW32" subkeys and their contents.