Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

Any method of making a suitable LIB file for a DLL created with Microsoft VS C++?

$
0
0

A hardware manufacturer has provided a DLL to interface with their USB device.  This DLL is a C++ Class Library created in Microsoft VisualStudio.

The supplied LIB files would not link (no surprises there - wrong format), so I used IMPLIB to create Embarcadero compatible LIB files.  However, the link still failed reporting that all of the external class methods (including constructors and destructors) referenced in my code had not been found.

Using IMPDEF showed that there was obscure name decoration, that obviously was not compatible with the name decoration used by RAD Studio.

A quick search online turned up a StackOverflow article which stated that this issue was not only between different company compilers, but even between different versions of compiler for the same manufacturer - there is no standard for name decoration in C++ DLLs.

If I can't link to this DLL, I essentially can't use the hardware.

Does anyone know a method of generating a LIB file from a DLL created in Microsoft VS C++ that will link to a RAD Studio Win32 executable project?


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>