class x { static CStringArray imagesFilesNames; };
CStringArray Shape::imagesFilesNames(setImagesFilesName()); CStringArray setImagesFilesName() { CString path=getCurrentPath(L"images"); CStringArray tmp; ListFolderContents(path,tmp); return tmp; } CString getCurrentPath(CString folderNameCategory) { ///to someting } void ListFolderContents(LPCTSTR lpszFolderPath, CStringArray& fileListing) { ///to someting }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)