Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to use old style dll and .lib file in Seattle


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Feb 20, 2018 11:01 AM Last Post By: Remy Lebeau (Te...
Robert Byers

Posts: 26
Registered: 7/11/98
How to use old style dll and .lib file in Seattle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2018 9:55 AM
I have an older DLL and an associated .lib file that I used in several programs written for the original C++ Builder and used up to and including C++ Builder 2007. I have been using the XE updates for some time and have, from time to time, attempted to use this DLL and its Lib file. I do need to support those older programs and do not want to find a replacement for these tools. Can you point me in the direction of finding documentation that will guide me through solving this problem? I've tried and tried to find docs that I can understand that will help me to understand my problem.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: How to use old style dll and .lib file in Seattle  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 20, 2018 11:01 AM   in response to: Robert Byers in response to: Robert Byers
Robert Byers wrote:

I have an older DLL and an associated .lib file that I used in
several programs written for the original C++ Builder and used up to
and including C++ Builder 2007. I have been using the XE updates for
some time and have, from time to time, attempted to use this DLL and
its Lib file.

Lib files are generally compiler-specific, so it is best to regenerate
the Lib file for each new version of the compiler. Don't reuse the old
Lib file. And import Lib files are cheap to create.

Beyond that, there are other issues to consider. For instance,
remember that the RTL/VCL switched to Unicode in CB2009, so make sure
you are accounting for that correctly, if you are trying to pass string
data across the DLL boundary.

And don't allocate data in the DLL and have the EXE free it, and vice
versa. Unless you code both EXE and DLL to share the same memory
manager, RTL, etc.

I do need to support those older programs and do not want to find a
replacement for these tools. Can you point me in the direction of
finding documentation that will guide me through solving this
problem?

What problem are you having exactly? You haven't stated an actual
problem. Please be more specific.

I've tried and tried to find docs that I can understand that will
help me to understand my problem.

Which is what exactly?

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02