Sign in to follow this  
Followers 0
McGod

DllCall Invalid Return Type

7 posts in this topic

Local $sRew

$sRew = DllCall("MD5Hash.dll", "str", "MD5Hash", "str", "Test String", "int", 2, "bool", true)

MsgBox(1, @error, $sRew)

MD5Hash.dll

I've tried many thing but it always returns an error of 2 which means I have an invalid return type.

Share this post


Link to post
Share on other sites



There is no "bool" type. Use "int" instead (either 0 or 1).


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/index.php?showtopic=21010

Theres were the DLL came from,

as for using "str" instead of "bool", it just hard crashes Autoit.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

http://www.autoitscript.com/forum/index.php?showtopic=21010

Theres were the DLL came from,

as for using "str" instead of "bool", it just hard crashes Autoit.

As far as I know its and PlugIn DLL that requiers a totally different syntax as shown in the example

Why are you not using it as described in the example and how did you get the shown DllCall syntax ?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I remembered reading somewhere that PluginOpen and PluginClose were removed, now that I see they are now, I do not need the dll call.

Share this post


Link to post
Share on other sites

I remembered reading somewhere that PluginOpen and PluginClose were removed, now that I see they are now, I do not need the dll call.

So you are seriously trying to tell us you made that DllCall() syntax up yourself and are surprised it does a hard crash ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0