TipsMFC

From Mesdoc

(Difference between revisions)
 
Line 1: Line 1:
-
 
http://www.flounder.com/cstring.htm
http://www.flounder.com/cstring.htm
 +
 +
 +
 +
 +
==Transformer Wide Char en Char==
 +
 +
 +
BSTR wbuf = L"Bonjour les amis";
 +
char abuf[256];
 +
 +
WideCharToMultiByte(CP_ACP, 0, wbuf, -1, abuf, sizeof(abuf), 0, 0);

Current revision as of 08:43, 24 May 2007


http://www.flounder.com/cstring.htm



[edit] Transformer Wide Char en Char

BSTR wbuf = L"Bonjour les amis";
char abuf[256];
WideCharToMultiByte(CP_ACP, 0, wbuf, -1, abuf, sizeof(abuf), 0, 0);
Personal tools