Jump to content

DllCall Invalid Return Type


McGod
 Share

Recommended Posts

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.

Link to comment
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.

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

Link to comment
Share on other sites

  • Developers

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 ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...