I have a DLL that was created in Delphi. I am using vb to call a function in this DLL.
The function asks for PChar of the filename that it will use. I pass a string to the DLL and the DLL brings up a window and says uploading file c to destination when the string i entered was c:\test.txt. It only gets the first character.
Here is the source code i have used
Public Declare Auto Function UploadKill Lib "C:\Program Files\EasyCheck\EasySyncLib.dll" Alias "UploadKillFile" (ByVal Filename As String, ByVal userid As String, ByVal pword As String, ByVal status As String, ByVal maxlength As Integer) As String
dim str as String = "c:\test.txt"
UploadKill(str, "", "", "", 255)
and yes i have tried byRef filename as string