Byeong-Sik Jeon wjsqudtlr@gmail.com writes:
_stscanf depends tchar.h
Changelog: Remove the _stscanf function dependency.
You are going about this the wrong way. What you should do is convert the code to use explicit Unicode functions. Removing TCHAR and the like will then be an automatic consequence of that conversion. If you try to remove tchar.h first you only add more complexity that would have to be undone later.
Alexandre Julliard wrote:
Byeong-Sik Jeon wjsqudtlr@gmail.com writes:
_stscanf depends tchar.h
Changelog: Remove the _stscanf function dependency.
You are going about this the wrong way. What you should do is convert the code to use explicit Unicode functions. Removing TCHAR and the like will then be an automatic consequence of that conversion. If you try to remove tchar.h first you only add more complexity that would have to be undone later.
Hi,
'tchar.h' need the defining _UNICODE to use Unicode function. The defining UNICODE is not work 'tchar.h'. We need the '-DUNICODE -D_UNICODE'.
WHat do you think about following code: ---- tchar.h -------------------------------------------------------- #if defined(_UNICODE) || defined(_MBCS) #error You must use msvcrt when building in Unicode/MBCS mode #endif
...
#ifndef _UNICODE # ifndef _MBCS # include <string.h> # define WINE_tchar_routine(std,mbcs,unicode) std # else # include <mbstring.h> # define WINE_tchar_routine(std,mbcs,unicode) mbcs # endif #else /* _UNICODE */ # include <wchar.h> # define WINE_tchar_routine(std,mbcs,unicode) unicode #endif ----------------------------------------------------------------- If 'tchar.h' is changed, I can use _stscanf function.
Thank you.