DLL for VC++

Hi all

I have created a DLL in Delphi, so far so good. However, when I try to use it in VC++, I had to use explicit linking, ie LoadLibrary, FindProcAddress, FreeLibrary, etc.

I want to use implicit linking, but it requires a .LIB file. What is that? The help file says the .LIB file should be supplied by the maker of the DLL. How do I create a .LIB file from Delphi?

Keith
LVL 1
keithcslAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AJFlemingCommented:
Create the .lib file using a tool called lib. it should live in the Bin directory of your C++ installation.

Hope this helps,

Adam...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
keithcslAuthor Commented:
AJFleming

can u give me an example command line? i have read the help file but still can't figure it out.

just to get it clear, i am using the LIB.EXE to create a .LIB file from the DLL I created in Delphi, correct?

keith
0
AJFlemingCommented:
say you have a DLL called Fred.dll, you would use

lib /DEF:fred.dll

which would generate
    fred.lib - the import library
    fred.exp - something else :)

HTH,

Adam...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.