Click here to Skip to main content
15,905,148 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp in dll Import Pin
tasumisra8-Dec-08 17:05
tasumisra8-Dec-08 17:05 
AnswerRe: help in dll Import Pin
raju00038-Dec-08 21:01
raju00038-Dec-08 21:01 
GeneralRe: help in dll Import Pin
tasumisra8-Dec-08 21:22
tasumisra8-Dec-08 21:22 
AnswerRe: help in dll Import Pin
Roger Stoltz8-Dec-08 21:35
Roger Stoltz8-Dec-08 21:35 
QuestionReading a MBCS string from a Rich Edit Text Box in VC6 Pin
JJeffrey8-Dec-08 16:32
JJeffrey8-Dec-08 16:32 
QuestionRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
Rajesh R Subramanian8-Dec-08 20:10
professionalRajesh R Subramanian8-Dec-08 20:10 
AnswerRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
JJeffrey8-Dec-08 21:00
JJeffrey8-Dec-08 21:00 
AnswerRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
Rajesh R Subramanian8-Dec-08 21:15
professionalRajesh R Subramanian8-Dec-08 21:15 
JJeffrey wrote:
My main focus are the Asian text for now. If I need Unicode for German, then I'll do another program for it later, ...


But why welcome pain? Won't a Unicode build solve your problem? Perhaps I'm not understanding your requirements or something like that...

But I just opened VC6, created a dialog based app with a rich edit control (CRichEditCtrl) on it and then did a Unicode build. The first time, I wasn't able to copy or type in Japanese into the rich edit control, even though I've got the language installed on my machine and it displayed ????.

I then remembered it was the old cow-doo with VC6 which requires a manual hack, and opened the .RC file of the project in a text editor to find this particular piece of code:
CONTROL         "",IDC_RICHEDIT1,"RICHEDIT",ES_AUTOHSCROLL | WS_BORDER | 
                    WS_TABSTOP,60,83,150,61
which I replaced with
CONTROL         "",IDC_RICHEDIT1,"RICHEDIT20W",ES_AUTOHSCROLL | WS_BORDER | 
                    WS_TABSTOP,60,83,150,61

A new build and off I go with my app ready to handle Japanese and German Unicode text.


JJeffrey wrote:
Aren't Japanese, Chinese and Korean Double byte and thus MBCS?


I suggest that you read up on Unicode. From the link you gave me:

Note: New Windows applications should use Unicode to avoid the inconsistencies of varied code pages and for ease of localization.

Hope that would help. Smile | :)


It is a crappy thing, but it's life -^ Carlo Pallini

GeneralRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
JJeffrey8-Dec-08 21:49
JJeffrey8-Dec-08 21:49 
GeneralRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
Rajesh R Subramanian8-Dec-08 21:55
professionalRajesh R Subramanian8-Dec-08 21:55 
GeneralRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
JJeffrey9-Dec-08 13:45
JJeffrey9-Dec-08 13:45 
GeneralRe: Reading a MBCS string from a Rich Edit Text Box in VC6 Pin
Rajesh R Subramanian9-Dec-08 19:40
professionalRajesh R Subramanian9-Dec-08 19:40 
Questionmsdn error: can't find the server. Pin
kcynic8-Dec-08 16:12
kcynic8-Dec-08 16:12 
AnswerRe: msdn error: can't find the server. Pin
SandipG 8-Dec-08 21:01
SandipG 8-Dec-08 21:01 
GeneralRe: msdn error: can't find the server. Pin
kcynic8-Dec-08 21:12
kcynic8-Dec-08 21:12 
GeneralRe: msdn error: can't find the server. Pin
SandipG 8-Dec-08 21:22
SandipG 8-Dec-08 21:22 
GeneralRe: msdn error: can't find the server. Pin
kcynic8-Dec-08 21:27
kcynic8-Dec-08 21:27 
AnswerRe: msdn error: can't find the server. Pin
kcynic8-Dec-08 21:45
kcynic8-Dec-08 21:45 
QuestionVideo Streaming SDK Pin
Nacho Chip8-Dec-08 14:08
Nacho Chip8-Dec-08 14:08 
AnswerRe: Video Streaming SDK Pin
rjkg8-Dec-08 17:53
rjkg8-Dec-08 17:53 
QuestionVC++ 6.0 to VC++ 9.0 Code porting Pin
pratap19808-Dec-08 8:06
pratap19808-Dec-08 8:06 
AnswerRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Stuart Dootson8-Dec-08 9:52
professionalStuart Dootson8-Dec-08 9:52 
GeneralRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
pratap19808-Dec-08 10:27
pratap19808-Dec-08 10:27 
GeneralRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Stuart Dootson8-Dec-08 16:56
professionalStuart Dootson8-Dec-08 16:56 
AnswerRe: VC++ 6.0 to VC++ 9.0 Code porting Pin
Michael Dunn8-Dec-08 9:59
sitebuilderMichael Dunn8-Dec-08 9:59 

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.