DOCERR: Wrong WinHelp Declaration in Windows Ver 3.1 API RefLast reviewed: June 21, 1995Article ID: Q108036 |
The information in this article applies to:
- Professional Edition of Microsoft Visual Basic for Windows, version 3.0
SUMMARYThis article corrects a documentation error for the WinHelp function call as described in the Windows version 3.1 API Reference help file that shipped with Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATIONThe declaration is incorrectly shown as:
Declare Function WinHelp Lib "User" (ByVal hWnd As Integer, ByVal lpHelpFile As String, ByVal wCommand As Integer, dwData As Any) As IntegerThe 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 IntegerNOTE: 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. The most common error that occurs when using the incorrect declaration is a message box stating "Help topic does not exist."
|
Additional reference words: 3.00 docerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |