Quote:
>How can i pass a string from within VB to a DLL
> written in C++???
> I have the DLL written. it works fine, as long as I pass simple long or
> int's, but when I want i pass a String(VB) to a char *, I get this message
> "BAD CALLING CONVENTION"
Download this file:
http://support.microsoft.com/download/support/mslfiles/Vb4dll.exe
It's a self-extracting archive of a text file that explains
the requirements for DLLs used from VB.
- the function cannot be a non-static class
member function
- the function must be declared __stdcall