Microsoft KB Archive/150213

= FIX: Incorrect Declaration for SelectObject API Function =

Article ID: 150213

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



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.

Additional query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport KBWIN32SDK KBAPI

Keywords: kbbug kbfix kbvbp500fix KB150213

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.