How to Obtain the Current Instance Handle of an .FLL FileID: Q115991 2.5x 2.6x 3.00 3.00b WINDOWS kbinterop The information in this article applies to:
SUMMARYWithin a standard Windows dynamic-link library (DLL), the instance handle of the current .DLL is passed to the function through the LibMain() API function. In a FoxPro-link library (FLL), you do not have access to the LibMain() function. In FoxPro versions 2.x, you have access to a global variable called Inst. Within this global variable is the current instance handle. However, if you are using Visual FoxPro version 3.0, you can use the FoxPro API call _GetAPIHandle() to obtain the the current instance handle.
MORE INFORMATION
FoxPro 2.xIn FoxPro version 2.x, to obtain the current instance handle, the variable Inst must be declared as follows:
Once this is done, the current instance handle will be stored in the global
variable Inst.
Visual FoxProTo obtain the current instance handle in FoxPro version 3.0, use the the FoxPro API call _GetAPIHandle(). For more information on this API function see the _GetAPIHandle() topic in the Visual FoxPro on-line help file.
REFERENCELibrary Construction Kit "Developer's Guide," version 2.5, page 31 Additional reference words: FoxDos FoxWin VFoxWin 2.50 2.50a 2.50b 2.60 2.60a 3.00 3.00b lck api KBCategory: kbinterop KBSubcategory:
|
Last Reviewed: May 21, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |