Get a correctly typed pointer to the global application object
[C++]
[CXllApp descended class]* XllGetTypedApp();
A correctly typed pointer to the one and only application object. The type will be the same as that
This function is defined by the XLL+ AppWizard in your project file. It returns a pointer cast to the type of your project's application class.
Projects generated by versions of XLL+ AppWizard before 4.2.4 will not include
this function. If you want to add it yourself, add a line similar to the following to
the main header file, just after the class definition.
inline CMyXllApp* XllGetTypedApp() { return (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 add-in functions that use MFC, you will need to declare the
XLL_FIX_STATE macro (with function scope)
before using XllGetApp().
Header: xllplus.h