What im talking about is
I dont understand what your argument is. ??
sizeof(TCHAR) would be write 1 byte(depends on the system) for evry element if UNICODE is not defined
and 2 bytes or whatever widechar is equivalent size to is if _UNICODE is defined.
If your writing elements the size of a char then it would be char ofcourse if not then its in unicode. Whats hard to understand there??
Theres nothing to worry about fwrite not writing in UNICODe as long as UNICODE is defined. And your fwrite paraamaters are correct