Can Borland C++ (version 4.5) create a standard Windows DLL from functions in the *.lib files?
I am trying to use PBCC 5.05 (PowerBasic Console Compiler for Windows) to convert my MB86 source code. The main problem is accessing functions contained in .lib files that came with MB86. For your info, MB86 (from Minnow Bear Computer) is an upgraded version of CBasic from Digital Research. It generates 32 bit DOS compatible C code. The following example shows the three steps involved in creating an executable program file (OM.EXE in the example):
1. MB86 translates a CBasic source code (OM.BAS in the example) into C;
2. compiles that C into an object file using Borland C++ 4.5; and
3. links that object file using Borland C++ 4.5 linker with function libraries (.lib files). The lib files (tltools.lib, tlmb86.lib, tlutil.lib, and sort.lib), which came with MB86, contain functions written in C and assembly language for 32 bit MB86.
Example:
MB86 OM
bcc -c -ml -w- OM.C
TLINK c0l om,om.exe,,tltools tlmb86 tlutil sort cl
The said *.lib files are not directly usable with PowerBASIC Console Compiler. If Borland C++ 4.5 can create a standard Windows DLL from functions in the *.lib files, the DLL files can be used with my newly purchased PBCC 5.05. Perhaps you can create the DLL files.
If you need to inspect the .lib files or need any MB 86 documentation, please let me know. Thanks in advance for your assistance.
I am trying to use PBCC 5.05 (PowerBasic Console Compiler for Windows) to convert my MB86 source code. The main problem is accessing functions contained in .lib files that came with MB86. For your info, MB86 (from Minnow Bear Computer) is an upgraded version of CBasic from Digital Research. It generates 32 bit DOS compatible C code. The following example shows the three steps involved in creating an executable program file (OM.EXE in the example):
1. MB86 translates a CBasic source code (OM.BAS in the example) into C;
2. compiles that C into an object file using Borland C++ 4.5; and
3. links that object file using Borland C++ 4.5 linker with function libraries (.lib files). The lib files (tltools.lib, tlmb86.lib, tlutil.lib, and sort.lib), which came with MB86, contain functions written in C and assembly language for 32 bit MB86.
Example:
MB86 OM
bcc -c -ml -w- OM.C
TLINK c0l om,om.exe,,tltools tlmb86 tlutil sort cl
The said *.lib files are not directly usable with PowerBASIC Console Compiler. If Borland C++ 4.5 can create a standard Windows DLL from functions in the *.lib files, the DLL files can be used with my newly purchased PBCC 5.05. Perhaps you can create the DLL files.
If you need to inspect the .lib files or need any MB 86 documentation, please let me know. Thanks in advance for your assistance.