Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindow, and other hwnd based programs...
Message
From
07/04/1998 21:55:10
 
 
To
07/04/1998 13:13:43
General information
Forum:
Visual Basic
Category:
Windows API functions
Miscellaneous
Thread ID:
00090210
Message ID:
00090327
Views:
24
Jeffrey,

>This is code taken directly from Microsoft's Knowledge Base. Yet the first encounter with the API FindWindow causes an err = 53,
>error= "File not found: User"

The KB article that you're referencing is obviously a 16-bit solution. Get rid of the FindWindow declare that you have, and substitute this:

Private Declare Function FindWindow _
Lib "user32" Alias "FindWindowA" ( _
ByVal sClassName As String, _
ByVal sWindowName As String) As Long

Also, change how you are calling it. Instead of the 0&, use vbNullString.

Ciao, Craig
Previous
Reply
Map
View

Click here to load this message in the networking platform