• Welcome to Dark Bit Factory & Gravity.
 

Need help wrapping a DLL to Blitz

Started by Devils Child, June 14, 2008

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Devils Child

hi!

recently i wanted to wrap a dll (see below). since i don't know much about wrapping i wasn't able to do it. the dll creates hashes (eg. MD5 SHA-256 etc...) out of files.

thread: http://xprofan.com/xprofan/h/hashdll-5930-0.html
download the dll: http://xprofan.com/download.php?id=2883

here is what i've tried and what didn't work: http://www.dev-ch.de/upload/files/Devils%20Child/HashTest.zip

i would be very glad if someone could look at this and help me out :) !
thanks :)

rain_storm

There is only one function in that DLL and its called testit not CreateHash, This makes me wonder if MultiHash.decls should be rewritten from this

.lib "MultiHash.dll"
CreateHash$(file$, algorithm$):"testit"

to this

.lib "MultiHash.dll"
CreateHash$(file$, algorithm$):"CreateHash"


Challenge Trophies Won:

Devils Child

well maybe it's because the function's name is "testit"... write an email to the author of the dll if you want him to change the name. i personally just want to wrap it...

Rbz

#3
I've tried to use that dll with VC++2005 and got same problem, it crashes after displaying result.
I think that best way is to contact the author and asking what could be wrong...  :-\
Challenge Trophies Won:

Devils Child

thanks for any help!
the problem has been solved by adding a string parameter in the decls.

rain_storm

Im glad you got to the bottom of it mate,  :)

Challenge Trophies Won: