I try to call a function in a DLL from VB, and I have few problems:
Public Declare Function GetDocumentPathname Lib "ps_API10.dll" (ByVal sString1 As String, ByRef sString2 As String) As Long
Response = GetDocumentPathname("Some text", sDocPathname)
long __stdcall CWordAPIApp::GetDocumentPathname(char sString1,char* sString2)
I'm expecting in my VB code to get: sDocPathName = "Some text", but it doesn't work.
I guess there is a problem with passing parameter by value or by reference, but I cannot find which (can I use 'strcpy' for this kind of job? ).