Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API Library not found
Message
De
09/11/1998 17:17:49
 
 
À
09/11/1998 14:35:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00155784
Message ID:
00155956
Vues:
37
>I think that I am having trouble with the following lines of code:
>
>DECLARE INTEGER FindWindow IN USER32.DLL ;
>STRING @lpClassName, STRING @titlestr
>
>How do you recommend that I change this line of code so that it works under all Windows operating systems?

Try:

DECLARE INTEGER FindWindow IN WIN32API ;
STRING @lpClassName, STRING @TitleStr

This works under all versions of Win95, Win98 and WinNT. The only place that I know of where this statement will not work is on some versions of Win3.x using WIN32s; because WIN32s actually converts the 32-bit API call back to a Win16 call and 'thunks', VFP may not be able to determine the correct provider. I can guarentee you that on a Win32s based system, the provider ISN'T' USER32.DLL.

>
>With these lines of code I assume that it is the User32.dll that is not on the particular user's system. Where can they get that file to install it? Isn't is just a standard Windows System file?
>
>Thanks,
>Phyllis
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform