Displaying Return Value from DLL Call

Got a problem you cannot solve? Try here.
Post Reply
jdeleon7010
Posts: 27
Joined: Thu Jul 26, 2012 2:23 pm

Displaying Return Value from DLL Call

Post 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~
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Displaying Return Value from DLL Call

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply