I'm trying to use a DLL written in Delphi. Both of the functions in the DLL return a Delphi PChar, which is essentially a null terminated string. When I call the functions, the strings get passed in OK but the return values don't work correctly - one of the functions returns garbage and the other returns an empty string.
Included below are my declare statements...
Any ideas what I'm doing wrong?
Thanks Jonathan
jon_george1@hotmail.com
Working against: Visual Basic, Access, Visual Interdev, VBScript, JavaScript, Active Server Pages, SQL Server, Oracle, XML
Included below are my declare statements...
Code:
Declare Function PutLetterInfoIntoReg Lib "letlib9.dll" _
(ByVal lsWhichMacro As String) As String
Declare Function readRegString Lib "letlib9.dll" _
(ByVal lsWhichMacro As String, ByVal lsWhichField As String) As String
Any ideas what I'm doing wrong?
Thanks Jonathan
jon_george1@hotmail.com
Working against: Visual Basic, Access, Visual Interdev, VBScript, JavaScript, Active Server Pages, SQL Server, Oracle, XML