Get a pointer to the global application object
CXllApp* XllGetApp( ); |
A pointer to the one and only application object.
Your instance will be of a class descended from CXllApp, so you may wish to cast the result, thus:
CMyXllApp* pApp = (CMyXllApp*)XllGetApp();
Note - The following applies only to add-ins built using the MFC libraries.
The function will ASSERT if MFC's state variables are not correctly set. In methods other than add-in functions that use MFC, you may need to declare the XLL_FIX_STATE macro (with function scope) before using XllGetApp().
Header: xllplus.h
Global functions & macros | ::XllGetTypedApp | XLL_FIX_STATE