Article ID: 108036
Article Last Modified on 3/3/2005
Declare Function WinHelp Lib "User" (ByVal hWnd As Integer,
ByVal lpHelpFile As String,
ByVal wCommand As Integer,
dwData As Any) As Integer
The correct declaration is as follows:
Declare Function WinHelp Lib "User" (ByVal hWnd As Integer,
ByVal lpHelpFile As String,
ByVal wCommand As Integer,
ByVal dwData As Any) As Integer
NOTE: Each Declare statement must be entered as one, single line.
Notice that the "ByVal" keyword was omitted from the last parameter in the
online reference. This means that the function is passing the last
parameter "dwData" by reference. It needs to be passed by value.Additional query words: 3.00 docerr
Keywords: KB108036