XLL+ Class Library (6.3)

::XllGetApp

Get a pointer to the global application object

CXllApp* XllGetApp( );

Return Value

A pointer to the one and only application object.

Remarks

Your instance will be of a class descended from CXllApp, so you may wish to cast the result, thus:

CMyXllApp* pApp = (CMyXllApp*)XllGetApp();

MFC support

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().

Requirements

Header: xllplus.h

See Also

Global functions & macros | ::XllGetTypedApp | XLL_FIX_STATE