static library and unicode
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
hi,
i have created a static library in visual studio 8 - VC++. I have
defined "Use Unicode Character Set" thus both _UNICODE and UNICODE
macro are defined.
When i declare a variable say TCHAR p; And i try to see the definion of
TCHAR it leads to winnt.h "typedef char TCHAR, *PTCHAR"
Is this a problem related to precompiled header or something else.
regards,
sunil virmani
.
Relevant Pages
- Re: CString to Unicode
... CString is based on TCHAR, ... Now in test3 I try to store test1 as unicode ... Since a conversion took place, test1 already contains wchar_t, which are ... assuming you somewhere used the 'USES_CONVERSION' macro. ... (microsoft.public.vc.language) - Re: Window types
... typedef WCHAR TCHAR, * PTCHAR; ... typedef char TCHAR, * PTCHAR; ... Under a Unicode build, ... If the only text your app needs to deal with can be handled with ASCII ... (microsoft.public.vc.language) - Re: TCHAR and buffer overflows
... > This would be a problem if you hadn't defined UNICODE in your build. ... > Check your factory headers for TCHAR defs and such, ... checked whether the MSVCRT memcpyimplementation actually detects overlapping ... Or good tools, lousy user, lousy work. ... (comp.security.misc) - Re: TCHAR and buffer overflows
... > This would be a problem if you hadn't defined UNICODE in your build. ... > Check your factory headers for TCHAR defs and such, ... checked whether the MSVCRT memcpyimplementation actually detects overlapping ... Or good tools, lousy user, lousy work. ... (comp.os.ms-windows.nt.admin.security) - Re: VC2005 Pro: IDE (Compiler ?) cant find Stdafx.h
... For new code I would obviously use UNICODE but for existing stuff ... > Use Multi-Byte Character Set ... > If you use TCHAR etc., and want your code to run on another platform, then ... > typedef char TCHAR; ... (microsoft.public.vc.language) |
|