I am calling a C dll from my VB6 application. The dll has a function call signature as follows.
void WINAPI geterrstr(char* foo);
where foo is a string that has to be returned.
In my VB6 application, I have tried calling my dll by using the following syntax, but it returns an empty string.
Declare Sub geterrstr Lib "technopnp.dll" (ByRef lpbuffer As String)
Any ideas?