I would like to refer to the test application code for 7zip
On the following line (Line 383):
SzArEx_GetFileNameUtf16(&db, i, temp); //Line 383, gets directory and filename
The uint16* value temp
gets a reference expression to the filepath (which I assume is a string).
I have a const char, let's name it filePathToCheck
that is basically a filepath name. What I want is a way to compare the filePathToCheck value with the temp value, so that I can "choose" the files I want to decrypt
My initial implementation was to get the Multibyte Value of temp but this gives an empty string, found in the method below:
WideCharToMultiByte(CP_UTF8,NULL,temp,sizeof(temp),testa /* char * */, 0, NULL, NULL);
when running the test application (arguments has been handled) the testa remains an empty string after the WideCharToMultiByte function. Am I in the wrong track altogether and I should have handled in another way?