XLL+ Class Library (6.3)

CXlOperCache::GetUserCacheFilePath

Get the default location for the cache file

static bool GetUserCacheFilePath(
   CString& strPath
);

Parameters

strPath

If the function succeeds, this will contain the full path to the cache file.

Return Value

The fuction returns true if the operation was successful, or false it fails for any reason.

Remarks

This method is implemented inline in xlserialize.h so that it can easily be used as the basis for your own more sophisiticated implementations, such as a shared cache.

The standard implementation constructs a path %TMP%\[Add-in name].dat, e.g. %TMP%\MyAddin.dat, and expands it to a complete file path. This location allows the user read, create and write access to the file under almost all security configurations.

Requirements

Header: xlserialize.h

See Also

CXlOperCache Class | CXlOperCache Methods