FIX: Incorrect Declaration for SelectObject API Function (150213)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q150213 SYMPTOMS
The Win32Api.txt file contains an incorrect entry for the declaration of
the 32-bit SelectObject function.
RESOLUTION
The win32api.txt file contains the following incorrect declaration:
Declare Function SelectObject Lib "user32" Alias "SelectObject" _
ByVal hdc As Long, ByVal hObject As Long) As Long
The correct declaration is:
Declare Function SelectObject Lib "gdi32" Alias "SelectObject" _
(ByVal hdc As Long, ByVal hObject As Long) As Long
Notice that the library name was incorrect in the original declaration.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
5.0.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbBug kbfix kbVBp500fix KB150213 |
---|
|