Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindWindow
Message
 
À
03/01/1999 18:16:15
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00172288
Message ID:
00172344
Vues:
35
Hi Calvin,

'Declare integer FindWindow in Win32api string string'

If that's the actual declaration, you are missing a comma between string and string. Your declaration tells VFP that FindWindow has one parameter that is of type string, and you call this parameter string. Since you only pass the window class, but no window title with one parameter, Windows can't find anything. That's why you get 0 if you pass only one parameter. YOu get a syntax error if you pass two parameters, because VFP exepects this function to have only one parameter.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform