AutoHotkey Community

It is currently May 26th, 2012, 8:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 18th, 2005, 11:28 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
In the InsertInteger function in the Help the DLL call needs some quotes, like
Code:
DllCall("RtlFillMemory", "UInt", &x, "UInt", 1, "UChar", 33)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2005, 1:20 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Due to the tendency to forget them, the quotes were made optional for the argument types in DllCall. In other words, the name of an unquoted variable is assumed to be the name of the argument type.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2005, 3:30 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Thanks, Chris! I checked, both work, with a slight difference. If you don't use quotes: 0 length variables are created for Uint, Uchar, etc. if they did not exist. They confused me when looking at the ListVars display. Especially Str, which I often use. If these variables do exist, they are not disturbed, so there is no problem.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group