General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only