Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed Help on memory allocation problem Pin
manish.patel28-Oct-07 18:56
manish.patel28-Oct-07 18:56 
AnswerRe: Need Help on memory allocation problem Pin
Paresh Chitte28-Oct-07 19:04
Paresh Chitte28-Oct-07 19:04 
GeneralRe: Need Help on memory allocation problem Pin
manish.patel28-Oct-07 19:12
manish.patel28-Oct-07 19:12 
GeneralRe: Need Help on memory allocation problem Pin
Michael Dunn28-Oct-07 19:43
sitebuilderMichael Dunn28-Oct-07 19:43 
GeneralRe: Need Help on memory allocation problem Pin
jhwurmbach29-Oct-07 0:01
jhwurmbach29-Oct-07 0:01 
AnswerRe: Need Help on memory allocation problem Pin
Neo Andreson29-Oct-07 22:41
Neo Andreson29-Oct-07 22:41 
Questionactivex Pin
saisp28-Oct-07 18:11
saisp28-Oct-07 18:11 
QuestionReplaceSel(…) does not work with DBCS Pin
John R. Shaw28-Oct-07 15:47
John R. Shaw28-Oct-07 15:47 
I am trying to display Japanese characters in a CRichEditView by setting the text using GetRichEditCtrl().ReplaceSel(…), but it does not work. The correct font is selected, so I know that is not the problem.

DBCS Example:
1) I run the Rich Text (RT) application, written in VC6.
2) Open ‘Accessories->System Tools->Character Map’, select same Font and Language as RT app., select full-width character ‘Z’ and paste it to RT app.
3) No problem!
4) Inside the RT app., programmatically select the DB text, and get a copy of it using GetRichEditCtrl().GetSelText().
5) Replace the selected text with the copy you just made using GetRichEditCtrl().ReplaceSel(…).
6) Problem: Instead of displaying a DB character it displays the ‘lead’ and ‘trail’ bytes as individual characters.

The full-width ‘Z’ is stored as “\x82\x79”, but if you pass that string to ReplaceSel(…), it will display “,y” instead of “Z”.

I have verified that the correct font is specified for the text being displayed (SHIFTJIS_CHARSET, "MS PMincho"), but it is not showing correctly, as stated above.

Do you have any ideas why this happens?


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

QuestionC++ Winsock Cli/Svr hostname/address Pin
managetao228-Oct-07 14:44
managetao228-Oct-07 14:44 
AnswerRe: C++ Winsock Cli/Svr hostname/address Pin
jhwurmbach28-Oct-07 23:42
jhwurmbach28-Oct-07 23:42 
QuestionDoing N-Up Printing programatically Pin
Bauxinator28-Oct-07 11:20
Bauxinator28-Oct-07 11:20 
QuestionRe: Doing N-Up Printing programatically Pin
Nelek28-Oct-07 23:42
protectorNelek28-Oct-07 23:42 
AnswerRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 0:06
Bauxinator29-Oct-07 0:06 
GeneralRe: Doing N-Up Printing programatically Pin
Nelek29-Oct-07 0:20
protectorNelek29-Oct-07 0:20 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 0:36
Bauxinator29-Oct-07 0:36 
GeneralRe: Doing N-Up Printing programatically Pin
Nelek29-Oct-07 1:29
protectorNelek29-Oct-07 1:29 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator29-Oct-07 2:29
Bauxinator29-Oct-07 2:29 
AnswerRe: Doing N-Up Printing programatically Pin
She_Jack6-Jul-10 22:59
She_Jack6-Jul-10 22:59 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator7-Jul-10 7:22
Bauxinator7-Jul-10 7:22 
GeneralRe: Doing N-Up Printing programatically Pin
She_Jack11-Jul-10 22:45
She_Jack11-Jul-10 22:45 
GeneralRe: Doing N-Up Printing programatically Pin
Bauxinator11-Jul-10 22:59
Bauxinator11-Jul-10 22:59 
QuestionRestarting Windows Pin
RomTibi28-Oct-07 9:47
RomTibi28-Oct-07 9:47 
AnswerRe: Restarting Windows Pin
Garth J Lancaster28-Oct-07 10:30
professionalGarth J Lancaster28-Oct-07 10:30 
GeneralRe: Restarting Windows Pin
RomTibi29-Oct-07 6:28
RomTibi29-Oct-07 6:28 
AnswerRe: Restarting Windows Pin
Hamid_RT28-Oct-07 19:09
Hamid_RT28-Oct-07 19:09 

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.