Information générale
Catégorie:
Fonctions API de Windows
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement