I am trying to convert a program for multibyte character to Unicode.
I have gone through the program and preceded the string literals with L
so they look like L"string"
.
This has worked but I am now left with a C style string that won't conform. I have tried the L
and putting it in TEXT()
but the L
gets added to the variable name -- not the string -- if I use TEXT()
.
I have tried making it a TCHAR
but then it complains that it cannot convert a TCHAR
to a char *
.
What options am I left with?
I know C and C++ are different. It is an old in-house C library that has been used in C++ projects for several years now.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…