fromm VB to a DLL written in Visual C++.
Posted on 2005-03-16
What I need to know is how to pass a string type, by reference and as
a parameter, fromm VB to a DLL written in Visual C++. Right now I am
trying it and I am not getting values back from the dll even though I
get the values when I either debug the dll or run it from a driver app
compiled in C. The C app was compiled as a standard DLL. I also tried
it as a COM DLL and I got the same issue.
The problem is that I have a VB client app accessing a Visual C++
standard DLL. The client app needs to send a string values to the dll
and have the dll update these values for later use by the client app.
I can contact the dll and get the values it's just that when it gets
back to the client app it is gibberish. I have tried just sending the
string on way and I realise that C++ arrays and VB strings have