Get a correctly typed pointer to the global application object
[CXllApp descended class]* XllGetTypedApp( ); |
A correctly typed pointer to the one and only application object. The type will be the same as that of your application class.
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 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