Page 1 of 1

Displaying Return Value from DLL Call

Posted: Mon Jul 30, 2012 4:13 pm
by jdeleon7010
I am trying to display the variable on my return value after calling kernel32.dll RemoveDirectoryA, but there is no value in the variable.

My purpose is for error handlng after the DLL call.

Here is my code,

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{F5799476-2928-4BCA-BAAD-936463BD3D90}~
~test~
~$RESULT$~
~0~
~1~
~~
~Call DLL Function~
~{C80E24F4-2836-45A1-A523-8D6400324688}~
~$WINSYSDIR$\kernel32.dll,RemoveDirectoryA,"double word",RESULT,"pointer to string",$PROGRAM_FILES$\HEART\DOCPROCESSING\flexmediaaddair,$~
~mIDEFunc.dll\mEXEFunc.dll~

Re: Displaying Return Value from DLL Call

Posted: Tue Jul 31, 2012 7:10 am
by FrancescoT
Dear User,

Please try the following:

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{62C50334-6AD7-4536-980D-9DF361910F1E}~
~test~
~$RESULT$~
~0~
~1~
~~
~Call DLL Function~
~{5ADDBE55-7158-4F0A-924C-D6264FFB8AFF}~
~kernel32.dll,RemoveDirectoryA,bool,RESULT,"pointer to string",$PROGRAM_FILES$\HEART\DOCPROCESSING\flexmediaaddair,$~
~mIDEFunc.dll\mEXEFunc.dll~
Regards