Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Short and Sweet.
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00161466
Message ID:
00161508
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform