🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: microsoft.public.vc.language
2 messages
2 total messages Started by Rod Brick Thu, 21 Jan 1999 00:00
Using a Borland DLL with VC++
#2
Author: Rod Brick
Date: Thu, 21 Jan 1999 00:00
22 lines
1579 bytes
I'm trying to use a DLL created with BC5.02 in a VC++ project.  I've run
the impdef command to create a def file.  Then I ran Microsoft's 'lib'
proggy as  "lib \DEF:myfile.def \MACHINE:IX86"  This created a .lib
file.  I'm getting a link error, "unresolved external symbol
__declspec(dllimport) int __cdecl minus(int,int)....." which is the name
of the function in the DLL I'm trying to use.  

I've tried adding the .lib file to my project with the same result. 
I've also put the .lib files path in the "Additional library path" field
in the project settings.  And I've added the .lib file to the library
modules field.  

I think I'm still missing something in the project settings, but I don't
know what it is.  I don't know my way around VC that well.

Any help is much appreciated.
 
-- 
Rod Brick
PSW Technologies
Austin, Texas
http://www.psw.com
Re: Using a Borland DLL with VC++
#3
Author: Chuck Le Mieux
Date: Thu, 21 Jan 1999 00:00
32 lines
1906 bytes
The biggest problem you have is the word Borland.

--
URL: http://otool.server101.com/
Email: clemieux@att.net
In Memory: http://otool.server101.com/inmemory.htm


Rod Brick <rbrick@pswtech.com> wrote in message
news:36A79A02.30234FF6@pswtech.com...
>I'm trying to use a DLL created with BC5.02 in a VC++ project.  I've run
>the impdef command to create a def file.  Then I ran Microsoft's 'lib'
>proggy as  "lib \DEF:myfile.def \MACHINE:IX86"  This created a .lib
>file.  I'm getting a link error, "unresolved external symbol
>__declspec(dllimport) int __cdecl minus(int,int)....." which is the name
>of the function in the DLL I'm trying to use.
>
>I've tried adding the .lib file to my project with the same result.
>I've also put the .lib files path in the "Additional library path" field
>in the project settings.  And I've added the .lib file to the library
>modules field.
>
>I think I'm still missing something in the project settings, but I don't
>know what it is.  I don't know my way around VC that well.
>
>Any help is much appreciated.
>
>--
>Rod Brick
>PSW Technologies
>Austin, Texas
>http://www.psw.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads