Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Short and Sweet.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00161466
Message ID:
00161508
Vues:
27
>What is a "HINSTANCE hinst" and how do I get a value for it?

Hi Chuck,

In VFP an HINSTANCE is an integer. If you're trying to get this value for a VFP app, use the following:
DECLARE INTEGER GetClassLong IN Win32API;
  INTEGER hWnd, INTEGER nIndex
* -16 is GCL_HMODULE
lnHInstance = GetClassLong(hWnd, -16)
You'll need the VFP window handle to pass as the hWnd value. Foxtools can provide this with its MainhWnd() function.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform