Provided by every stand-alone DLL. This function will be called by the Add-In Manager when a stand-alone DLL (XLL) is added by the user.
Should return 1 (int).
int WINAPI xlAutoAdd(void);
This function has no arguments.
Use this function if there is anything your XLL needs to do when it is added by the Add-In Manager.
\SAMPLES\FRAMEWRK\EXAMPLE.C
int WINAPI xlAutoAdd(void)
{
// Display a dialog box indicating that
// the XLL was successfully added
Excel(xlcAlert, 0, 2,
TempStr(" Thank you for adding Example.XLL!"),
TempInt(2));
return 1;
}
xlAutoRemove