Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: limited dynamic CStatics Pin
Peter Molnar20-Nov-03 11:02
Peter Molnar20-Nov-03 11:02 
QuestionProperty Sheet in a CDialogBar - possible? Pin
srev18-Nov-03 9:34
srev18-Nov-03 9:34 
AnswerRe: Property Sheet in a CDialogBar - possible? Pin
Peter Molnar18-Nov-03 12:53
Peter Molnar18-Nov-03 12:53 
GeneralRe: Property Sheet in a CDialogBar - possible? Pin
srev18-Nov-03 13:47
srev18-Nov-03 13:47 
GeneralFile read Pin
Anonymous18-Nov-03 8:42
Anonymous18-Nov-03 8:42 
GeneralRe: File read Pin
Adam Gritt18-Nov-03 8:50
Adam Gritt18-Nov-03 8:50 
GeneralRe: File read Pin
Christian Graus18-Nov-03 9:49
protectorChristian Graus18-Nov-03 9:49 
GeneralModless Dialog access in Console based applications Pin
parekodi18-Nov-03 8:35
parekodi18-Nov-03 8:35 
I am trying to develop Console based application with Modless Dialog box.
This application has many class which does different operations like sending messages,
getting messages and various update process which I have to display on the modless dialog box.

I have created console based project with MFC support using App Wizard. Also able to create modless dialog

CModlessDlg *pDlg = new CModlessDlg;
pDlg->Create(IDD_DIALOG_MODLESS);
pDlg->ShowWindow(SW_SHOW);
..
call ClassA which gets messages and updates modless dlg on how many messges were received
call ClassB which sends messages and updates modless dlg on how many messges were sent
..
delete pDlg;

PROBLEM: I have to update this modless dialog box with how many messages recieved, how many messages sent etc from different class.

I tried GetDlgItem, GetDlgCtrlID in ClassA, ClassB but I am unsuccessfull and I am unable to get the handle of ModlessDlg and access its variable to update.
I think I am not using it in right way!!!

What is the best way do it?

As my application is console based unlike dialog based.
what extra plumbing is required to update the modless dlg ?

If anyone knows a better approach (other than modless) do let me know.

Thanks for all your help.

GeneralRe: Modless Dialog access in Console based applications Pin
Tim Deveaux18-Nov-03 8:58
Tim Deveaux18-Nov-03 8:58 
GeneralRe: Modless Dialog access in Console based applications Pin
parekodi18-Nov-03 9:33
parekodi18-Nov-03 9:33 
GeneralRe: Modless Dialog access in Console based applications Pin
Tim Deveaux18-Nov-03 9:47
Tim Deveaux18-Nov-03 9:47 
GeneralIP Address Pin
Member 57135818-Nov-03 7:06
Member 57135818-Nov-03 7:06 
GeneralRe: IP Address Pin
David Crow18-Nov-03 7:24
David Crow18-Nov-03 7:24 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 12:03
Member 57135818-Nov-03 12:03 
GeneralRe: IP Address Pin
David Crow18-Nov-03 14:22
David Crow18-Nov-03 14:22 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 19:08
Member 57135818-Nov-03 19:08 
GeneralRe: IP Address Pin
boxban18-Nov-03 16:18
boxban18-Nov-03 16:18 
GeneralRe: IP Address Pin
Member 57135818-Nov-03 19:11
Member 57135818-Nov-03 19:11 
GeneralRe: IP Address Pin
Member 57135820-Nov-03 6:14
Member 57135820-Nov-03 6:14 
Generalerror LNK2005 Pin
Ares218-Nov-03 6:39
Ares218-Nov-03 6:39 
GeneralRe: error LNK2005 Pin
David Crow18-Nov-03 6:51
David Crow18-Nov-03 6:51 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 6:57
Ares218-Nov-03 6:57 
GeneralRe: error LNK2005 Pin
David Crow18-Nov-03 6:59
David Crow18-Nov-03 6:59 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 7:24
Ares218-Nov-03 7:24 
GeneralRe: error LNK2005 Pin
Ares218-Nov-03 7:36
Ares218-Nov-03 7:36 

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.