Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call For Help Pin
yanyu8130-Jan-05 4:27
yanyu8130-Jan-05 4:27 
GeneralRe: Call For Help Pin
David Crow31-Jan-05 2:24
David Crow31-Jan-05 2:24 
GeneralDecryption Pin
gecool28-Jan-05 2:55
gecool28-Jan-05 2:55 
GeneralUnicode CString init from &#XXXX;&#YYYY; representation Pin
lob28-Jan-05 1:17
lob28-Jan-05 1:17 
GeneralRe: Unicode CString init from &#XXXX;&#YYYY; representation Pin
includeh1028-Jan-05 7:49
includeh1028-Jan-05 7:49 
GeneralRe: Unicode CString init from &#XXXX;&#YYYY; representation Pin
lob28-Jan-05 9:30
lob28-Jan-05 9:30 
GeneralConsole Output Pin
IronMike27-Jan-05 23:51
IronMike27-Jan-05 23:51 
GeneralRe: Console Output Pin
trelliot28-Jan-05 2:33
trelliot28-Jan-05 2:33 
Yes, you're right, you need to create a console for output if you're using WriteConsole().

If you want to output it to the caller's console, then you need to create the output console HANDLE in the caller, starting program, thread, fibre, whatever, and pass the output console HANDLE to whatever you're trying start up (How you do that is up to you - commandline args, thread args - etc, etc). Then you should be able to use WriteConsole() using the handle passed to it.

Now, if I may comment.

The reason that SDI, MDI, and any other windowing programmes exist is that they expect user input, even if it is only a mouse click, or there are special circumstances for output - just have a look at all the processes running on your computer - guaranteed that most are background tasks with no user interface or the user interface is mediated by a second programme.

If you want to write a 'console' programme then you don't need all the baggage that comes with windowing.
If you want to write a programme that needs even moderately complicated user interaction, then think about the model you're using.
GeneralRe: Console Output Pin
IronMike28-Jan-05 3:06
IronMike28-Jan-05 3:06 
GeneralRe: Console Output Pin
V.28-Jan-05 2:47
professionalV.28-Jan-05 2:47 
GeneralRe: Console Output Pin
IronMike28-Jan-05 3:09
IronMike28-Jan-05 3:09 
GeneralSolution: Console Output Pin
IronMike31-Jan-05 21:38
IronMike31-Jan-05 21:38 
GeneralHorizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash27-Jan-05 23:38
zahid_ash27-Jan-05 23:38 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
tanvon malik28-Jan-05 2:22
tanvon malik28-Jan-05 2:22 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
zahid_ash28-Jan-05 2:54
zahid_ash28-Jan-05 2:54 
GeneralRe: Horizental Scroll is not Appearing in CCheckListBox .. Urgent Pin
V.28-Jan-05 2:57
professionalV.28-Jan-05 2:57 
GeneralI tried but not working Pin
zahid_ash28-Jan-05 3:02
zahid_ash28-Jan-05 3:02 
GeneralRe: I tried but not working Pin
V.28-Jan-05 3:07
professionalV.28-Jan-05 3:07 
Generalis it for CheckListbox too Pin
zahid_ash28-Jan-05 3:31
zahid_ash28-Jan-05 3:31 
GeneralRe: is it for CheckListbox too Pin
tanvon malik28-Jan-05 3:48
tanvon malik28-Jan-05 3:48 
GeneralRe: I tried but not working Pin
tanvon malik28-Jan-05 3:32
tanvon malik28-Jan-05 3:32 
GeneralIt works but After Addstring() Pin
zahid_ash30-Jan-05 19:07
zahid_ash30-Jan-05 19:07 
QuestiondWhat is protected inheritance? Pin
phijophlip27-Jan-05 22:53
phijophlip27-Jan-05 22:53 
AnswerRe: dWhat is protected inheritance? Pin
Ryan Binns28-Jan-05 0:49
Ryan Binns28-Jan-05 0:49 
GeneralRe: dWhat is protected inheritance? Pin
trelliot28-Jan-05 2:46
trelliot28-Jan-05 2:46 

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.