Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2035 closed Bug (No Bug)

DllCall() - undocumented datatype "bool"

Reported by: Zedna Owned by:
Milestone: Component: Documentation
Version: 3.3.7.18 Severity: None
Keywords: Cc:

Description

In Helpfile for DllCall() there is not mentioned "bool" type for Valid Autoit Types. So oficially AutoIt Type "int" should be used for WINDOWS API Type "bool".

But I noticed in some UDFs there is used undocumented "bool" type directly and it works fine.
So probaly only Helpfile should be corrected accordingly.

Example:

Func _GUICtrlMenu_AppendMenu($hMenu, $iFlags, $iNewItem, $pNewItem)
	...
	Local $aResult = DllCall("User32.dll", "bool", "AppendMenuW", "handle", $hMenu, "uint", $iFlags, "uint_ptr", $iNewItem, $sType, $pNewItem)
	...
EndFunc   ;==>_GUICtrlMenu_AppendMenu

Attachments (0)

Change History (2)

comment:1 by trancexx, 14 years ago

Resolution: No Bug
Status: newclosed

DllCall data types are case-insensitive.

comment:2 by Zedna, 14 years ago

Sorry! Sorry!

I looked into helpfile for older release 3.2.12.1 All the time.
I use on my computers release 3.2.12.1 and as beta latest beta (3.3.7.18).

In older helpfile there is no BOOL/BOOLEAN.
In latest beta it's documented OK.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.