Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I figure out the reason of not working of the intellisense property of Visual Studio ? Pin
Gem7-Feb-04 23:14
Gem7-Feb-04 23:14 
GeneralUnicode and MultiByteToWideChar Pin
Jim Crafton7-Feb-04 3:21
Jim Crafton7-Feb-04 3:21 
GeneralRe: Unicode and MultiByteToWideChar Pin
Jim Crafton7-Feb-04 3:26
Jim Crafton7-Feb-04 3:26 
GeneralRe: Unicode and MultiByteToWideChar Pin
Jörgen Sigvardsson7-Feb-04 7:24
Jörgen Sigvardsson7-Feb-04 7:24 
GeneralRe: Unicode and MultiByteToWideChar Pin
Jim Crafton7-Feb-04 7:33
Jim Crafton7-Feb-04 7:33 
GeneralRe: Unicode and MultiByteToWideChar Pin
Michael Dunn7-Feb-04 15:59
sitebuilderMichael Dunn7-Feb-04 15:59 
GeneralRe: Unicode and MultiByteToWideChar Pin
Jim Crafton7-Feb-04 16:29
Jim Crafton7-Feb-04 16:29 
GeneralRe: Unicode and MultiByteToWideChar Pin
Michael Dunn7-Feb-04 16:40
sitebuilderMichael Dunn7-Feb-04 16:40 
If you have a single-byte string in the local code page (I think that's what you have in mind), you first have to convert to UTF-16 with MultiByteToWideChar* then back to UTF-8 with WideCharToMultiByte.

I was looking into this myself last week, so it's fresh in my mind. Smile | :) The docs are vague in that they list CP_UTF8 as a code page, but don't actually say how to use it. Basically, UTF-16 is "Unicode" and "wide chars" in Win32, everything else is mult-byte.

* or an equivalent method, like using _bstr_t or A2W

--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber | RightClick-Encrypt
GeneralRe: Unicode and MultiByteToWideChar Pin
Jim Crafton7-Feb-04 18:58
Jim Crafton7-Feb-04 18:58 
GeneralRe: Unicode and MultiByteToWideChar Pin
Michael Dunn8-Feb-04 6:24
sitebuilderMichael Dunn8-Feb-04 6:24 
GeneralRe: Unicode and MultiByteToWideChar Pin
Nemanja Trifunovic8-Feb-04 18:50
Nemanja Trifunovic8-Feb-04 18:50 
GeneralRe: Unicode and MultiByteToWideChar Pin
Jim Crafton9-Feb-04 13:08
Jim Crafton9-Feb-04 13:08 
GeneralRe: Unicode and MultiByteToWideChar Pin
Nemanja Trifunovic9-Feb-04 17:58
Nemanja Trifunovic9-Feb-04 17:58 
GeneralClicking on Line Pin
Monty26-Feb-04 21:25
Monty26-Feb-04 21:25 
GeneralRe: Clicking on Line Pin
Alexander M.,7-Feb-04 3:06
Alexander M.,7-Feb-04 3:06 
GeneralRe: Clicking on Line Pin
Jim Crafton7-Feb-04 7:59
Jim Crafton7-Feb-04 7:59 
GeneralRe: Clicking on Line Pin
AORD7-Feb-04 16:31
AORD7-Feb-04 16:31 
GeneralRe: Clicking on Line Pin
Tom Larsen8-Feb-04 7:36
Tom Larsen8-Feb-04 7:36 
GeneralRe: Clicking on Line Pin
Paul Hooper8-Feb-04 11:55
Paul Hooper8-Feb-04 11:55 
GeneralRe: Clicking on Line Pin
Monty28-Feb-04 17:56
Monty28-Feb-04 17:56 
GeneralRe: Clicking on Line Pin
Paul Hooper8-Feb-04 18:33
Paul Hooper8-Feb-04 18:33 
GeneralTransfer Files over Network Pin
rasha20036-Feb-04 20:54
rasha20036-Feb-04 20:54 
GeneralRe: Transfer Files over Network Pin
Alexander M.,7-Feb-04 3:00
Alexander M.,7-Feb-04 3:00 
GeneralRe: Transfer Files over Network Pin
Anonymous7-Feb-04 3:05
Anonymous7-Feb-04 3:05 
GeneralRe: Transfer Files over Network Pin
Ashman7-Feb-04 15:12
Ashman7-Feb-04 15:12 

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.