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

C / C++ / MFC

 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
Roger Stoltz8-Dec-08 22:44
Roger Stoltz8-Dec-08 22:44 
AnswerRe: Do you put :: in front of every Windows API call ? [modified] Pin
Defenestration8-Dec-08 22:53
Defenestration8-Dec-08 22:53 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
Snorri Kristjansson8-Dec-08 22:21
professionalSnorri Kristjansson8-Dec-08 22:21 
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 
I'm sorry to trouble everyone, I have a feeling this should be a simple answer but I'm missing something.

I need to take in from a Rich Edit Box on my dialog box a string which can be a string in Chinese, Japanese, English, German, etc.

I'm currently using this:
char  TextArray[SIZE]={0};	
m_RichEditBox.GetWindowText(TextArray, SIZE);


When I encounter a Multi-char string (like the Chinese or Japanese ones), the string TextArray is filled with "????" instead (Yes, Question marks, in case you thought you saw wrongly)

I have tried to declare TextArray as a
TCHAR
, tried to convert it to a wchar, tried to declare as a CString, but so far nothing has worked.

I have checked, I do not have _UNICODE declared, and since _MBCS is default in VC6, shouldn't I get some result instead of "????" ?

Or is my problem the fact I'm using VC6?

Thanks in advance, and if you need more info, feel free to ask.

Jeffrey
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 
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 

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.