XLL+ Class Library

::XllGetApp

Get a pointer to the global application object

[C++]
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 add-in functions that use MFC, you will 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