Jump to content

Recommended Posts

Posted

@J1 : I'm not clever with Dllcall and variables types, maybe you can confirm that : if I understand the helpfile, BYTE and BOOLEAN are both "an unsigned 8 bit integer", so it should work with both in the DllCall, no ?

 

Yes.

Posted

Thanks RTFC, I just see that in the helpfile. I have never seen that there is BOOL and BOOLEAN, I thought it was the same thing...

You're welcome, jguinch. See here for some background, for example. It's one of those nasty gotchas that trips many people up first time (me included). A dll may return AL (least significant byte of EAX) or the entire 32-bits (in 32-bit architectures). If you're testing for EAX=0 or 1, and the MSB part is non-zero and only the LSB is updated, you're bound to get confusing errors.

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
  • Recently Browsing   0 members

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