Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Internet connection events? Pin
Sujan Christo5-Oct-04 20:34
Sujan Christo5-Oct-04 20:34 
GeneralMy IP is unreachable Pin
hazem_hegazi5-Oct-04 13:09
hazem_hegazi5-Oct-04 13:09 
GeneralRe: My IP is unreachable Pin
ThatsAlok5-Oct-04 18:46
ThatsAlok5-Oct-04 18:46 
GeneralRe: My IP is unreachable Pin
Arsalan Malik5-Oct-04 19:13
Arsalan Malik5-Oct-04 19:13 
GeneralRe: My IP is unreachable Pin
2249175-Oct-04 20:37
2249175-Oct-04 20:37 
GeneralUsing the CWndFade class from article Pin
Anonymous5-Oct-04 12:41
Anonymous5-Oct-04 12:41 
GeneralRe: Using the CWndFade class from article Pin
Christian Graus5-Oct-04 13:35
protectorChristian Graus5-Oct-04 13:35 
GeneralSwitching TCHAR to UTF-8 Pin
SanShou5-Oct-04 12:13
SanShou5-Oct-04 12:13 
Hey all...

I am trying to write out a Japanese text string in a data file which was originally specified for ANSI text and used across several applications. Basically what was suggested was that I use UTF-8 to write out the text strings and read them back in. One of the constraints is that the current applications that read English only should still be able to read English data if this application writes it. However the old applications can punt on the Japanese until they are also updated.

I can figure out how to write from MBCS to UTF-8:

<br />
#ifndef UNICODE<br />
MultiByteToWideChar(CP_UTF8, dwFlags, lpMBCSStr, cbMBCS, lpWCStr, cchWCStr)<br />
#endif<br />


However we normally build in UNICODE using TCHAR, and it is normally UTF-16. However I just want to convert this one string from UTF-16 to UTF-8. Anyone ever done this?

You can also just call me insane and stupid as long as you can suggest a better approach. I don't mind being insulted if I can learn something. Big Grin | :-D

Brian

If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
GeneralRe: Switching TCHAR to UTF-8 Pin
Michael Dunn5-Oct-04 13:38
sitebuilderMichael Dunn5-Oct-04 13:38 
GeneralVisual Studio 2003 Migration question. Pin
RickGavin5-Oct-04 11:47
RickGavin5-Oct-04 11:47 
GeneralRe: Visual Studio 2003 Migration question. Pin
Michael Dunn5-Oct-04 11:50
sitebuilderMichael Dunn5-Oct-04 11:50 
GeneralRe: Visual Studio 2003 Migration question. Pin
RickGavin5-Oct-04 12:31
RickGavin5-Oct-04 12:31 
QuestionSTL warnings??? Pin
Bob Stanneveld5-Oct-04 9:46
Bob Stanneveld5-Oct-04 9:46 
AnswerRe: STL warnings??? Pin
Joaquín M López Muñoz5-Oct-04 9:56
Joaquín M López Muñoz5-Oct-04 9:56 
GeneralRe: STL warnings??? Pin
John M. Drescher5-Oct-04 10:17
John M. Drescher5-Oct-04 10:17 
GeneralRemove Unused Resource Id's Pin
Ron Sanderson5-Oct-04 8:56
Ron Sanderson5-Oct-04 8:56 
GeneralRe: Remove Unused Resource Id's Pin
2249175-Oct-04 17:17
2249175-Oct-04 17:17 
GeneralRe: Remove Unused Resource Id's Pin
mahade15-Oct-04 19:38
mahade15-Oct-04 19:38 
GeneralSO_LINGER Pin
Madmaximus5-Oct-04 8:45
Madmaximus5-Oct-04 8:45 
GeneralHello World in random colors Pin
...---...5-Oct-04 6:02
...---...5-Oct-04 6:02 
GeneralRe: Hello World in random colors Pin
4apai5-Oct-04 6:59
4apai5-Oct-04 6:59 
General&quot;clear&quot; the transparent background rendering of an ActiveX control Pin
bancavo5-Oct-04 5:54
bancavo5-Oct-04 5:54 
GeneralRe: &quot;clear&quot; the transparent background rendering of an ActiveX control Pin
Ryan Binns5-Oct-04 18:28
Ryan Binns5-Oct-04 18:28 
GeneralRe: &quot;clear&quot; the transparent background rendering of an ActiveX control Pin
yaseeen5-Oct-04 22:16
yaseeen5-Oct-04 22:16 
GeneralRe: &quot;clear&quot; the transparent background rendering of an ActiveX control Pin
Ryan Binns6-Oct-04 0:58
Ryan Binns6-Oct-04 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.