Re: VC++ .NET 2005 prepending underscore to external functions references
"Jett Gamboa" <jett@discussions.microsoft.com> wrote in message
news:esbqMj0yGHA.1936@TK2MSFTNGP04.phx.gbl...
Thanks Will. Unfortunately it still did not work for me.
I can't say that I know what the problem is. It might be an installation
issue. Are you are that there are no other versions of the import library
and /or DLL hanging around to gum up the works? Did the vendor tell you that
his import library was compatible with VS2005?
There is one more thing to try. And that is to construct an import library
with VS2005. At this location
http://support.microsoft.com/?id=131313
you will find a knowledge base article entitled "HOWTO: Create 32-bit Import
Libraries Without .OBJs or Source"
The basic idea is that you use VS2005 to define the interface to the DLL
that you have. You don't need to implement that interface - you can have
integer functions unconditionally returning 0, boolean functions returning
false etc. Then you use the IDE to build it. That will yield a DLL and an
import library. You keep the import library and copy over the DLL with the
one you got from the vendor. That done, you link your console program
against the import library just created.
Regards,
Will