XLL+ Class Library (7.0)

CXllApp::PrefixFunctions

Add a string prefix to all the library's add-in functions

void PrefixFunctions(
   const TCHAR* pszPrefix
);

Parameters

pszPrefix

Specifies a null-terminated string containing a prefix that will be added to the beginning of all exported Excel functions.

Remarks

This function should only be called during InitInstance(), after AddStaticFns().

All functions in Excel, including add-ins, share the same name-space. It is often useful to use this function to force all your functions to occupy a restricted portion of that name space.

For instance, you could prefix all your functions with the author's initials, thus ensuring that if two developers create different functions which happen to have the same name, they will not conflict in Excel.

Example

CXllApp::PrefixFunctions() Example

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | CXllApp::AddStaticFns()