From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can Borland-formatted obj files be converted to MS Visual C/C++ format?

I have an obj file which was compiled using the Borland compiler compatibility mode. The source for this file is not available. I wish to use this file in a LabWindows project which is built using the Visual C/C++ compiler compatibility mode. Is there a way to import or convert Borland-formatted obj files for use within a LabWindows project which uses the Visual C/C++ compiler compatibility mode?
0 Kudos
Message 1 of 4
(3,132 Views)
No, there is no way to convert object files from one compatibility mode to another without the source code. You would need the source code of the object file or need to change compatibility modes of CVI in order to use the file.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,132 Views)
I'm not sure that works, but maybe it's worth trying it:
I think it is necessary that the borland objs are linkable, means there are
no external definitions used.

1. Switch your CVI to borland mode (running the installer).
2. Take your borland modules, write some wrapper code and generate a DLL,
that exports all the functions you need.
3. Generate the DLL and import libraries for all compatibility modes
(especially for MSVC).
4. Switch your CVI back to MSVC mode.
5. Add the DLL (import library) to your project, that wants to use the
borland objects and use them as DLL-Calls.

I never tried, but at a first glance, this should work. Please let me know
what you figure out.

Regards
Torsten

"dale" schrieb im Newsbeitrag
news:506500000008000000D2660000-
1031838699000@exchange.ni.com...
> I have an obj file which was compiled using the Borland compiler
> compatibility mode. The source for this file is not available. I wish
> to use this file in a LabWindows project which is built using the
> Visual C/C++ compiler compatibility mode. Is there a way to import or
> convert Borland-formatted obj files for use within a LabWindows
> project which uses the Visual C/C++ compiler compatibility mode?
0 Kudos
Message 3 of 4
(3,132 Views)
This is no longer a problem as we have discovered a corresponding Visual C/C++ formatted obj file. Thanks to those who responded.
0 Kudos
Message 4 of 4
(3,132 Views)