Page 1 of 1
Can I have text as resultvalues from Call DLL Function?
Posted: Sun Jun 17, 2007 1:38 pm
by jls
Can I have text as resultvalues from Call DLL Function?
Is this possible?
Jørgen Storlie
Posted: Sun Jun 17, 2007 7:21 pm
by MichaelNesmith
No, you cannot do this. You will need to pass text in one of the function parameters, using the allocated string buffer type.
Posted: Mon Jun 18, 2007 3:29 am
by jls
Hello
I can not figure out how to make this work:
Delphi Code:
Code: Select all
function GETCLIENTID(var CLIENTID: PChar): boolean; stdcall;
begin
StrCopy(CLIENTID, PChar('Test Result'));
result := true;
end;
Script Code:
Code: Select all
Set Variable ARESULT to False
Set Variable CLIENTID to
Call DLL Function $SUPPORTDIR$\\testdll.dll->GETCLIENTID (get result into variable ARESULT)
or as clipboard text:
~InstallAware Clipboard Data~
~Call DLL Function~
~{D358BB08-5A01-403B-8ACF-68597B36CB04}~
~$SUPPORTDIR$\\testdll.dll,GETCLIENTID,bool,ARESULT,"allocated string buffer (MAX_PATH length)",$CLIENTID$,$~
~mIDEFunc.dll\\mEXEFunc.dll~
Jørgen Storlie
Re: Can I have text as resultvalues from Call DLL Function?
Posted: Fri Dec 20, 2013 12:51 pm
by mbond
I can not get this to work in IA18. I've searched these forums for over an hour. I'm sure I just don't have something configured correctly. Is there a clear solution/example/guide for doing this with Delphi? It should show the IA and the Delphi side of things. Thanks.
Re: Can I have text as resultvalues from Call DLL Function?
Posted: Mon Dec 23, 2013 1:23 pm
by FrancescoT
Dear User,
Honestly, I don't understand which is your problem with using the command ... anyway, you'll not find a Delphi sample with this forum.
Regards