Hi:
I am converting my code to use Unicode, and have a compile error that I can't figure out. Please help, and thanks very much ahead of time. I've searched the internet for a solution, but even Google doesn't have a search result for even the simplest search string: "_wstat64i32 undefined". And I've searched the MSDN website and got similar results.
Setup:
MSVC++ Express Edition
Windows SDK is installed
Errors:
error C2079: 'statBuferror' uses undefined struct 'stat_test::_wstat64i32'
Code:
-A simple windows console project
-Defined _UNICODE in the C/C++ Preprocessor Definitions
#include
"stdafx.h"#include
<tchar.h>#include
<windows.h>#include
<conio.h>#include
<sys/types.h>#include
<sys/stat.h>int
_tmain(int argc, _TCHAR* argv[]){
struct _tstat statBuf;
return 0;
}
What I've been able to figure out:
<tchar.h> converts _tstat to _wstat <wchar.h> converts that to _wstat64i32 get "error C2079: 'statBuf' uses undefined struct 'stat_test::_wstat64i32'