BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using DLL's

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
borland
Guest





PostPosted: Thu Feb 09, 2006 2:03 pm    Post subject: Using DLL's Reply with quote



I am currently working with a third party DLL. The DLL is from a company
called FTDI Chip. It is used to interface to USB devices that carry their
IC's. I have included the h-file provided by them with the drivers and have
compiled my program successfully. However, I am getting a linker error....

Unresolved external "the function I am trying to use" referenced from
C:\"bla bla bla (my project path)

Can you please shed some light on this?
Back to top
Pete Fraser
Guest





PostPosted: Thu Feb 09, 2006 2:03 pm    Post subject: Re: Using DLL's Reply with quote



You need to include a Lib file that connects to the DLL.
If the Lib file is in VC format you may have to convert it
to Borland's lib format.
HTH Pete

"borland" <jberri01 (AT) vinland (DOT) com> wrote in message
news:43eb432d$1 (AT) newsgroups (DOT) borland.com...
Quote:
I am currently working with a third party DLL. The DLL is from a company
called FTDI Chip. It is used to interface to USB devices that carry their
IC's. I have included the h-file provided by them with the drivers and
have
compiled my program successfully. However, I am getting a linker
error....

Unresolved external "the function I am trying to use" referenced from
C:\"bla bla bla (my project path)

Can you please shed some light on this?
Back to top
Darko Miletic
Guest





PostPosted: Thu Feb 09, 2006 3:03 pm    Post subject: Re: Using DLL's Reply with quote



borland wrote:
Quote:
I am currently working with a third party DLL. The DLL is from a company
called FTDI Chip. It is used to interface to USB devices that carry their
IC's. I have included the h-file provided by them with the drivers and have
compiled my program successfully. However, I am getting a linker error....

Unresolved external "the function I am trying to use" referenced from
C:\"bla bla bla (my project path)

Can you please shed some light on this?

That happens if dll is not located in the same folder with the
executable or some other folder in the search path.

So copy the dll where your exe is located and then try to use it.
Back to top
Jeff Kish
Guest





PostPosted: Thu Feb 09, 2006 4:03 pm    Post subject: Re: Using DLL's Reply with quote

On Thu, 09 Feb 2006 11:00:39 -0300, Darko Miletic <darko (AT) uvcms (DOT) com>
wrote:

Quote:
borland wrote:
I am currently working with a third party DLL. The DLL is from a company
called FTDI Chip. It is used to interface to USB devices that carry their
IC's. I have included the h-file provided by them with the drivers and have
compiled my program successfully. However, I am getting a linker error....

Unresolved external "the function I am trying to use" referenced from
C:\"bla bla bla (my project path)

Can you please shed some light on this?

That happens if dll is not located in the same folder with the
executable or some other folder in the search path.

So copy the dll where your exe is located and then try to use it.
If this is a generic dll, not a bpl....


I think linker problems occur because the library is missing, not the
dll (a runtime problem will occur there).

Get the third party dll's import library.
If the library can't be linked in because it is the wrong format COFF
etc, at the command line you can to an implib to create an import
library.

Then link to that library in your project.
Regards, and HTH
Jeff Kish
Back to top
Darko Miletic
Guest





PostPosted: Thu Feb 09, 2006 5:03 pm    Post subject: Re: Using DLL's Reply with quote

Jeff Kish wrote:
Quote:
I think linker problems occur because the library is missing, not the
dll (a runtime problem will occur there).

Indeed you are right. I misunderstood his problem. Thanks for pointing
that out.

Darko
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.