Thema
:
C++ Frage: Konstante mit L"....
Einzelnen Beitrag anzeigen
X-Dragon
Registriert seit: 14. Jan 2003
Ort: Schortens
289 Beiträge
Delphi 6 Enterprise
#
2
5. Feb 2003, 14:42
Das sollte weiter helfen
Zitat:
The "L" macro is NOT a type conversion utility. It works only at COMPILE time to produce a
UNICODE
string constant.
If you need to convert from
ASCII
to
UNICODE
or back there are several alternatives. If you are using MFC, there are several macros defined in afxpriv.h that are convenient. In particular they are A2W or W2A.
Also at your disposal are the Windows
SDK
functions:
MultiByteToWideChar()
WideCharToMultiByte()
functions. These are the "standard" means of converting.
Quelle:
http://www.experts-exchange.com/Prog...0141914.html#1
Zitat
X-Dragon
Öffentliches Profil ansehen
Besuche die Homepage von X-Dragon!
Mehr Beiträge von X-Dragon finden