Click here to Skip to main content
15,929,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Legacy Code with VS 2005 Pin
Andy2026-Aug-07 4:43
Andy2026-Aug-07 4:43 
AnswerRe: Legacy Code with VS 2005 Pin
cp98766-Aug-07 13:58
cp98766-Aug-07 13:58 
QuestionHow to debug a shortcut to the application Pin
PravinSingh6-Aug-07 3:20
PravinSingh6-Aug-07 3:20 
AnswerRe: How to debug a shortcut to the application Pin
toxcct6-Aug-07 3:22
toxcct6-Aug-07 3:22 
GeneralRe: How to debug a shortcut to the application Pin
PravinSingh6-Aug-07 3:40
PravinSingh6-Aug-07 3:40 
QuestionConsole in MFC Pin
baerten6-Aug-07 2:43
baerten6-Aug-07 2:43 
QuestionRe: Console in MFC Pin
David Crow6-Aug-07 3:46
David Crow6-Aug-07 3:46 
AnswerRe: Console in MFC Pin
baerten6-Aug-07 4:05
baerten6-Aug-07 4:05 
Thanks for your help temptation

No, i wanted to open a ConsoleWindow from out a Window

I made it via AllocConsole, than i had the problem that a printf does not write into the console.
This problem i solved with this code :

int hCrt, i;
FILE *hf;
hCrt = _open_osfhandle((long) GetStdHandle(STD_OUTPUT_HANDLE), _O_TEXT);
hf = _fdopen( hCrt, "w" );
*stdout = *hf;
i = setvbuf( stdout, NULL, _IONBF, 0 ); 


But at the moment i have still a problem during writing text via PDCurses, it won't be displayed into
the console.


A make a "mutation of the Console-Project, where a MFC Window-Application start new processes and redirect the output to his View.

In my case i add to the MFC-Project a whole Win32-DOS-Project and start the Main-Function via calling the _main
( the DOS-Application should not be launched as a new process, to keep the possibility to interact
the MFC Application with the DOS-Application ( via Message ) )

I hope you can understand my idea

Do you know the application of several DOS-Consoles into different Tab's ?


Greetings Smile | :)
QuestionHow To Obtain IP Adress of a Yahoo Messenger Chatter Pin
Pallab_GT6-Aug-07 2:41
Pallab_GT6-Aug-07 2:41 
AnswerRe: How To Obtain IP Adress of a Yahoo Messenger Chatter Pin
Nelek6-Aug-07 3:00
protectorNelek6-Aug-07 3:00 
GeneralRe: How To Obtain IP Adress of a Yahoo Messenger Chatter Pin
Hamid_RT6-Aug-07 8:59
Hamid_RT6-Aug-07 8:59 
AnswerRe: How To Obtain IP Adress of a Yahoo Messenger Chatter Pin
David Crow6-Aug-07 3:49
David Crow6-Aug-07 3:49 
QuestionHelp about try Pin
kcynic6-Aug-07 2:33
kcynic6-Aug-07 2:33 
AnswerRe: Help about try Pin
toxcct6-Aug-07 2:55
toxcct6-Aug-07 2:55 
GeneralRe: Help about try Pin
kcynic6-Aug-07 3:08
kcynic6-Aug-07 3:08 
GeneralRe: Help about try Pin
toxcct6-Aug-07 3:10
toxcct6-Aug-07 3:10 
GeneralRe: Help about try Pin
kcynic6-Aug-07 4:16
kcynic6-Aug-07 4:16 
GeneralRe: Help about try Pin
kcynic6-Aug-07 3:08
kcynic6-Aug-07 3:08 
GeneralRe: Help about try Pin
kcynic6-Aug-07 4:42
kcynic6-Aug-07 4:42 
GeneralRe: Help about try Pin
toxcct6-Aug-07 5:32
toxcct6-Aug-07 5:32 
QuestionIcon in console Pin
Neidlin6-Aug-07 2:18
Neidlin6-Aug-07 2:18 
AnswerRe: Icon in console Pin
_AnsHUMAN_ 6-Aug-07 2:30
_AnsHUMAN_ 6-Aug-07 2:30 
GeneralRe: Icon in console Pin
Neidlin6-Aug-07 2:47
Neidlin6-Aug-07 2:47 
QuestionDialog box without Max,Minimize Button Pin
shakumar_226-Aug-07 2:02
shakumar_226-Aug-07 2:02 
AnswerRe: Dialog box without Max,Minimize Button Pin
Nelek6-Aug-07 2:27
protectorNelek6-Aug-07 2:27 

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.