Click here to Skip to main content
15,890,670 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: data communication between applications Pin
cmk8-Sep-05 4:18
cmk8-Sep-05 4:18 
QuestionSilent Crash On 2K - Debug Suggestions? Pin
Paul Belikian6-Sep-05 16:56
Paul Belikian6-Sep-05 16:56 
Answer[Msg Deleted] Pin
Christian Graus6-Sep-05 17:10
protectorChristian Graus6-Sep-05 17:10 
AnswerRe: Silent Crash On 2K - Debug Suggestions? Pin
Christian Graus6-Sep-05 17:10
protectorChristian Graus6-Sep-05 17:10 
GeneralRe: Silent Crash On 2K - Debug Suggestions? Pin
Paul Belikian6-Sep-05 18:58
Paul Belikian6-Sep-05 18:58 
GeneralRe: Silent Crash On 2K - Debug Suggestions? Pin
Christian Graus6-Sep-05 19:15
protectorChristian Graus6-Sep-05 19:15 
AnswerRe: Silent Crash On 2K - Debug Suggestions? Pin
Blake Miller7-Sep-05 9:49
Blake Miller7-Sep-05 9:49 
QuestionDisplay Unicode string in Win32 Console Pin
Le Tuan Anh6-Sep-05 16:49
Le Tuan Anh6-Sep-05 16:49 
Problem:
I have difficulty in displaying Unicode string in Win32 console.

Test:
-Win32 Console is a character-mode application, not a byte-mode application. So even other documents said Win32 Console support Unicode, I found no sample or more details document than MSDN about this.
-I tried to used the FillConsoleOutputCharacter(Unicode development mode)
and found that the Win32 Screen Buffer is really a character-based buffer.

#include <wincon.h>
TCHAR c;
COORD crdSrc;
crdSrc.X = 0;
crdSrc.Y = 2;

for (c = 0x0000; c < 0xFFFF; c++)
{
...
FillConsoleOutputCharacter(hFile,c,sizeof(c),crdSrc,&dwConsole);
//Unicode mode: sizeof(c) = 1 character
}

The result in the output is always showing two character(???). But it can
show some following compound Unicode character: ㈪ ㈫ ㌘ ....
It make me confused now.
-I used "cmd /U" in command line. The pipe are Unicode but displaying is strill OEM.

Conclusion:
-I have a doubt that the Win32 Console Screen Buffer has one byte
per character(character-mode application). If it is actually that, it is
unable to show Unicode character in Win32 Console except some system Compound
Unicode Character.

Question:
-Can anyone help me to displaying Unicode string in Win32 Console?
-By the way, can you show me the way to read a handle(HANDLE) information. Reading STD_OUTPUT_HANDLE always causes violent access memory exception (is it secured pipe?).

Many thanks.

Le Tuan Anh
Mail to: anhlt@mt-it.com
Questionhow read another process of variable? Pin
00000000096-Sep-05 15:36
00000000096-Sep-05 15:36 
QuestionSend message Pin
Member 21610046-Sep-05 15:34
Member 21610046-Sep-05 15:34 
AnswerRe: Send message Pin
Christian Graus6-Sep-05 15:51
protectorChristian Graus6-Sep-05 15:51 
Questionusing GDI+ in C++ windows project Pin
mpastchenko6-Sep-05 13:51
mpastchenko6-Sep-05 13:51 
AnswerRe: using GDI+ in C++ windows project Pin
Christian Graus6-Sep-05 14:55
protectorChristian Graus6-Sep-05 14:55 
GeneralRe: using GDI+ in C++ windows project Pin
mpastchenko7-Sep-05 8:33
mpastchenko7-Sep-05 8:33 
GeneralRe: using GDI+ in C++ windows project Pin
mpastchenko7-Sep-05 9:10
mpastchenko7-Sep-05 9:10 
GeneralRe: using GDI+ in C++ windows project Pin
Christian Graus7-Sep-05 12:45
protectorChristian Graus7-Sep-05 12:45 
GeneralRe: using GDI+ in C++ windows project Pin
Christian Graus7-Sep-05 12:43
protectorChristian Graus7-Sep-05 12:43 
GeneralRe: using GDI+ in C++ windows project Pin
mpastchenko7-Sep-05 14:31
mpastchenko7-Sep-05 14:31 
GeneralRe: using GDI+ in C++ windows project Pin
Christian Graus7-Sep-05 14:34
protectorChristian Graus7-Sep-05 14:34 
GeneralRe: using GDI+ in C++ windows project Pin
mpastchenko7-Sep-05 15:39
mpastchenko7-Sep-05 15:39 
QuestionError in Release Build Only Pin
hamza56-Sep-05 13:48
hamza56-Sep-05 13:48 
AnswerRe: Error in Release Build Only Pin
ThatsAlok6-Sep-05 18:56
ThatsAlok6-Sep-05 18:56 
GeneralRe: Error in Release Build Only Pin
Anonymous7-Sep-05 6:57
Anonymous7-Sep-05 6:57 
AnswerRe: Error in Release Build Only Pin
Anonymous6-Sep-05 20:59
Anonymous6-Sep-05 20:59 
GeneralRe: Error in Release Build Only Pin
Anonymous7-Sep-05 6:58
Anonymous7-Sep-05 6:58 

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.