Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetItemData/GetItemData Pin
Nishad S27-Nov-06 17:09
Nishad S27-Nov-06 17:09 
GeneralRe: SetItemData/GetItemData Pin
Benoy Bose27-Nov-06 17:22
Benoy Bose27-Nov-06 17:22 
GeneralRe: SetItemData/GetItemData Pin
Nishad S27-Nov-06 17:57
Nishad S27-Nov-06 17:57 
GeneralRe: SetItemData/GetItemData Pin
Naveen27-Nov-06 19:36
Naveen27-Nov-06 19:36 
GeneralRe: SetItemData/GetItemData Pin
Benoy Bose27-Nov-06 21:59
Benoy Bose27-Nov-06 21:59 
QuestionZooming out/in Pin
cyn827-Nov-06 15:53
cyn827-Nov-06 15:53 
QuestionIs there have any faster way to get last row data Pin
vegasoul27-Nov-06 15:51
vegasoul27-Nov-06 15:51 
QuestionText file got encoded in UTF16. (VC2005) Pin
fefe.wyx27-Nov-06 15:37
fefe.wyx27-Nov-06 15:37 
I'm using Visual Studio Express.

I tried to output some data into a text file, I found that the file is encoded in UTF16. The wired part is that non-ASCII characters are in MultiByte encoding (all of them takes two bytes), but the ASCII ones got in UTF16 (which also takes two bytes), and the whole file has a UTF16 BOM.

The file is opened with fopen, and written with fprintf. My strings in my program all all unicode strings, so I had to write like this:
fprintf("   ");
fprintf("%ls", L"UNICODE STRING");

There is some non-ASCII characters in my unicode strings.

I used wide-char version functions in my program explictly, except for file operations (I didn't use wfprintf or wfopen). The charset for the project is set to "No set", and neither UNICODE nor MBCS is defined.

I have set the locale at the begin of main.

And I want to get a MultiByte file, how can get it?

Thanks in advance.
QuestionHow to detect the movement of Joystick? Pin
LaHaHa27-Nov-06 15:26
LaHaHa27-Nov-06 15:26 
Questionhow to use scrolling control Pin
cyn827-Nov-06 15:05
cyn827-Nov-06 15:05 
AnswerRe: how to use scrolling control Pin
Nibu babu thomas27-Nov-06 21:38
Nibu babu thomas27-Nov-06 21:38 
Questionperiodically obtain and show mem usage Pin
cy163@hotmail.com27-Nov-06 14:18
cy163@hotmail.com27-Nov-06 14:18 
AnswerRe: periodically obtain and show mem usage Pin
Nibu babu thomas27-Nov-06 21:37
Nibu babu thomas27-Nov-06 21:37 
Questioncustom menu item command ids Pin
dene9997027-Nov-06 9:51
dene9997027-Nov-06 9:51 
AnswerRe: custom menu item command ids Pin
Mark Salsbery27-Nov-06 10:10
Mark Salsbery27-Nov-06 10:10 
AnswerRe: custom menu item command ids Pin
Scott Holt27-Nov-06 13:52
Scott Holt27-Nov-06 13:52 
QuestionPop Up loading message Pin
acerunner31627-Nov-06 9:12
acerunner31627-Nov-06 9:12 
AnswerRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 9:30
Mark Salsbery27-Nov-06 9:30 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 11:03
acerunner31627-Nov-06 11:03 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 11:09
Mark Salsbery27-Nov-06 11:09 
GeneralRe: Pop Up loading message [modified] Pin
acerunner31627-Nov-06 12:50
acerunner31627-Nov-06 12:50 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 13:24
Mark Salsbery27-Nov-06 13:24 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 13:45
acerunner31627-Nov-06 13:45 
GeneralRe: Pop Up loading message Pin
Mark Salsbery27-Nov-06 13:51
Mark Salsbery27-Nov-06 13:51 
GeneralRe: Pop Up loading message Pin
acerunner31627-Nov-06 14:20
acerunner31627-Nov-06 14:20 

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.