hi, I saved the file names in a CString array. and I need to pass these file names to a function "someFunc" which takes const char* . but the code does not work. the error says:
cannot convert parameter 1 from 'CString' to 'const char *'
I also try to cast it into char* but failed too.
#define MAX_IMAGE_NUMBER 1000
fileName[i] = (LPCTSTR)finder.GetFilePath();