[comp.lang.c++] MS Windows DLL generation using Borland C++

feustel@netcom.COM (David Feustel) (06/29/91)

I'm having problems generating a Windows DLL using Borland BCC.
The DLL compiles and links, but its functions are not found by MS
Visual Basic when they are called.

Does anyone have any experience generating these DLLs successfully
that he/she can share? Thanks.

-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: feustel@netcom.com  

I voted for Bush once.  As it's turning out, once was once too often.

feustel@netcom.COM (David Feustel) (06/29/91)

I fixed the problem by making all functions explicitly exported using
the _export keyword, using IMPLIB to find out what the mangled names
of the C++ DLL functions were and then using the VB Alias option in
the Declare statement to make the names accessible.
-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: feustel@netcom.com  

I voted for Bush once.  As it's turning out, once was once too often.