XLL+ Class Library (6.3)

CXllApp::PrefixFunctionsA

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

void PrefixFunctionsA(
   const char* 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.

Requirements

Header: xllplus.h

See Also

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