XLL+ Class Library (7.0)

CXlMacros::Files

Returns the names of all files in the specified directory or folder

static int Files(
   std::vector<CString>& files,
   LPCTSTR directory_text = 0
);

Parameters

files

A vector of strings which will be populated with the list of names.

directory_text

Directory_text specifies which directories or folders to return filenames from.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods