🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.vc.language
Article #2

Using a Borland DLL with VC++

#2
From: 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
Technical Details
Message-ID: <36A79A02.30234FF6@pswtech.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f50b,40b1400d087e1801,start
X-Google-Attributes: gid10f50b,public
X-Google-Thread: 10c066,40b1400d087e1801,start
X-Google-Attributes: gid10c066,public
X-Google-Thread: f7a51,40b1400d087e1801,start
X-Google-Attributes: gidf7a51,public
From: Rod Brick <rbrick@pswtech.com>
Subject: Using a Borland DLL with VC++
Date: 1999/01/21
Message-ID: <36A79A02.30234FF6@pswtech.com>
X-Deja-AN: 435367906
Content-Transfer-Encoding: 7bit
Organization: PSW Technologies
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Newsgroups: microsoft.public.vc.language,microsoft.public.vstudio.general,borland.public.cpp.commandlinetools