Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating DLL using BC5.02 for VB6

4 views
Skip to first unread message

Gary Newsom

unread,
Jun 9, 2001, 10:49:22 PM6/9/01
to
The documentation for Borland C++ says to export each function you wish to
use from another application using __export in the function prototype
(header file), as well as, the function declaration. I use "far" to provide
for
the large memory model. I compile using the -tWDE command line option
just in case. The DLL is created and I've registered it with windows.
Windows Quickview shows the mangled function names in the export list
but VB6 can't find the function.

Does anyone know how to properly create DLL's using BC++5?
These functions in the DLL will be used in Visual Basic 6.

Gary Newsom

x...@hotmail.com

unread,
Jun 11, 2001, 8:55:23 PM6/11/01
to
I can't say for certain about Borland's procedures, but i know that with VC++ you have to specify __stdcall at the start of the function, maybe
Borland is similar?

x...@hotmail.com

unread,
Jun 11, 2001, 8:56:40 PM6/11/01
to
And why do you have to specify "far"? Under Win32, all memory models are automatically huge, with flat addressing.

sluggy

>On Sun, 10 Jun 2001 02:49:22 GMT, "Gary Newsom" <junkma...@nc.rr.com> wrote:

0 new messages