XLL+ Class Library (6.3)

::XllGetTypedApp

Get a correctly typed pointer to the global application object

[CXllApp descended class]* XllGetTypedApp( );

Return Value

A correctly typed pointer to the one and only application object. The type will be the same as that of your application class.

Remarks

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.

Defining XllGetTypedApp

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(); }

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 | ::XllGetApp | XLL_FIX_STATE