I need help combining the file name with the filepath
my code:
WIN32_FIND_DATA FindData;
HANDLE hFind;
hFind = FindFirstFile(L"../art/*.dds", &FindData );
if( hFind == INVALID_HANDLE_VALUE )
{
PrintCharS("Error searching directory");
return;
}
do
{
char ch[260];
char DefChar = ' ';
WideCharToMultiByte(CP_ACP, 0, FindData.cFileName, -1, ch, 260, &DefChar, NULL);
string ss(ch);
if (ch != "invalid.dds")
{
WCHAR* path = L"../art/";
//path = path + (WCHAR)ch;
int size = strlen(ch);
wchar_t* str;
size_t length = 0;
mbstowcs_s(&length, str, ch, size+1);
WCHAR* Path = path + str;
PrintWCHARS(Path);
}
}
while( FindNextFile(hFind, &FindData) > 0 );
All I would like is to get a WCHAR* with the filepath AND filename