| View previous topic :: View next topic |
| Author |
Message |
borland Guest
|
Posted: Thu Feb 09, 2006 2:03 pm Post subject: Using DLL's |
|
|
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
|
Posted: Thu Feb 09, 2006 2:03 pm Post subject: Re: Using DLL's |
|
|
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
|
Posted: Thu Feb 09, 2006 3:03 pm Post subject: Re: Using DLL's |
|
|
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
|
Posted: Thu Feb 09, 2006 4:03 pm Post subject: Re: Using DLL's |
|
|
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
|
Posted: Thu Feb 09, 2006 5:03 pm Post subject: Re: Using DLL's |
|
|
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 |
|
 |
|