Hi all,
I've tried to call an external DLL via WINAPI. This usually works quite well in Jabaco, but in my special case I encountered problems, because the call was supposed to pass back output parameters.
My example:
|
Source code
|
1
2
3
|
Private WINAPI Function GetPrivateProfileString Lib "KERNEL32" Alias "GetPrivateProfileStringA" _
(ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, _
ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
|
Looking at the decompiled Java code generated by Jabaco, I saw no way how the changed value of "lpReturnedString" could be possibly copied back to the String variable of the calling routine. A bug in Jabaco?
I tried several alternatives playing around with ByRef, ByVal, IntCall(), and NativeCall().
No chance, at least not for me!
Any hints are greatly appreciated!
A1880