i cannot use fopen on files includes in their name some characters (example : ş, ç, ı) how can i use fopen on these files ? i'm using vc++ 6 (i have to) and c language. when i was trying to use _wfopen it's never open any file.
+3
A:
Convert your pathname to UTF-16 (probably using MultiByteToWideChar
) and use GetShortPathNameW
to get a path you can pass to fopen
.
Ben Straub
2009-06-01 20:23:12
A:
Make sure that you have wchar_t (it's a compiler setting) and make sure you're passing in a wchar_t * and not a char * to _wfopen.
plinth
2009-06-02 12:24:18