JScript Posted June 10, 2014 Posted June 10, 2014 I realized that some parameters of the dlls have changed, eg: CreateDIBSection before: DllCall('gdi32.dll', _ 'ptr', 'CreateDIBSection', _ 'hwnd', 0, _ 'ptr', DllStructGetPtr($tBITMAPINFO), _ 'uint', 0, _ 'ptr*', 0, _ 'ptr', 0, _ 'uint', 0) After: DllCall('gdi32.dll', _ 'handle', 'CreateDIBSection', _ 'handle', 0, _ 'struct*', $tBITMAPINFO, _ 'uint', 0, _ 'ptr*', 0, _ 'handle', 0, _ 'dword', 0) Any particular reason for this? Although in both modes it works normally... JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
Richard Robertson Posted June 10, 2014 Posted June 10, 2014 Technically they are the same thing. Both are pointers to struct but one is explicitly labeled as a pointer to struct instead of just a pointer. At the business end, the pointer is just a number and works the same both ways. JScript 1
JScript Posted June 10, 2014 Author Posted June 10, 2014 Ok, now I understand better, thanks! JS http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
DatMCEyeBall Posted June 10, 2014 Posted June 10, 2014 Technically they are the same thing. Both are pointers to struct but one is explicitly labeled as a pointer to struct instead of just a pointer. At the business end, the pointer is just a number and works the same both ways. So AutoIt externally references it's structs by pointers, or does it convert the internal "handle" into a real one? "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation
Richard Robertson Posted June 12, 2014 Posted June 12, 2014 So AutoIt externally references it's structs by pointers, or does it convert the internal "handle" into a real one? That is internal behavior and unimportant for you as an AutoIt user. I can't answer the question as AutoIt is closed source. trancexx 1
DatMCEyeBall Posted June 12, 2014 Posted June 12, 2014 Let's wait for a dev to come along then. "Just be fred, all we gotta do, just be fred." -Vocaliod "That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha @tabhooked Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation
jpm Posted June 13, 2014 Posted June 13, 2014 handle and ptr do the same just easy way to use them when MSDN API use one or the other.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now