3a8 Subj : Re: Creating DLLs with Borland C++ 5.5 For Use In VB (Not COM or OLE) To : borland.public.cpp.borlandcpp From : "Sebastian Ledesma" Date : Mon Mar 22 2004 06:40 pm Hello Charlie: You should try something like this: In your CPlusPlus.DLL extern "C" int _export _stdcall myFun(); extern "C" void _export _stdcall myFunc2(int myValue); In your VB app: Declare Function myFun Lib "CPlusPlus.DLL" as Long Declare Function myFunc2(ByVal myValue As Long) Lib "CPlusPlus.DLL" Saludos Sebastian "Charlie" escribió en el mensaje news:405f5ac2$1@newsgroups.borland.com... > > I've used the code in previous posts. My naming convention now works. I can find the entry points. My module using the DLL now complains of the wrong calling convention. How do I know if its _stdcall, or _pascal, or other? I'm using BC++v5.02. > > - Charlie . 0