Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 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 Changed 13 years ago by trancexx

  • Resolution set to No Bug
  • Status changed from new to closed

DllCall data types are case-insensitive.

comment:2 Changed 13 years ago by Zedna

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.