How to port Borland C ++ 5.02 application to Windows 7?

We are currently porting our applications developed in Borland C ++ 5.02 on Windows and XP on Windows 7. When I run the application on Windows 7, I get an error

VBX library library. Failure.

When I tried to find the cause on the Internet, I was able to identify the error due to BIVBX31N.EXE and BIVBX31N.dll.

How can I put the Borland C ++ 5.02 application on Windows 7, solving the problems of BIVBX31N.EXE and BIVBX31N.dll?

+4
source share
3 answers

If you are stuck with this product, here's what I recommend.

Simple answer: Do not use the IDE , but continue to use the command line tools:

  • bcc32.exe (compiler) still works fine on Windows 8.

  • ilink32.exe (linker) still works fine.

Both can be found in the bin subfolder.

You can get some information from the command line by opening the IDE (project) file in Notepad or in a hex editor (this is not a text file, but you can read most of the materials in Notepad). Or, if you have access to Windows XP, you can open it there to copy the settings for use to command-line tools.

Just use some other IDE or editor, such as Notepad ++ , to edit the source files. You can use an older version of Visual C ++ to edit RC files, or Notepad or other tools.

If you want to really take a picture, set up your IDE to run the “external tool” when you click on the toolbar button to run the command line tools to compile + links (and, if necessary, run the EXE file). You might also find a debugger tool, but I don't need it yet, so I haven't tested it.

+2
source

My best recommendation is to start the process of porting your code to Visual Studio .

You can use a library like OWLNext if you used the OWL library in Borland.

Another alternative is to use Windows Virtual PC (or another such virtual machine) to run Borland in integrated Windows XP mode. See an example here .

+1
source

Could this be the likely answer ??? You need to download the customized Borland Compiler from http://www.4shared.com/get/Gs41_5yA/borland_for_graphics.html or http://dwij.co.in/graphics-c-programming-for-windows-7-borland-compiler / .
Put your bin Borlands bin folder in your environment variables.
Now go to the bin folder and edit the bcc32.cfg file to suit your folder structure. This file contains header and library settings.

 -I"D:\Borland\include;" -L"D:\Borland\lib;D:\Borland\Lib\PSDK" 

Now create any C / C ++ program, say myprogram.cpp
Use the following command to compile this heap of code:

 F:\>bcc32 myprogram.cpp 

Congratulations !!!.

0
source

Source: https://habr.com/ru/post/1433580/


All Articles