Jump to content
Sign in to follow this  
McGod

DllCall Invalid Return Type

Recommended Posts

McGod

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
Siao

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
McGod

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
Jos

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                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
McGod

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
Jos

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                                How to post scriptsource        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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.