MFC Logging to dialog box

7thAvatar
7thAvatar used Ask the Experts™
on
I have mainframe create mydialog on a dialogbar.
user can select multiple dialogs on the dialogbar, but the message logging should continue no matter what dialog you are on.

most of this is functional already, but i need a method of sending logging data to the dialog from outside the MFC framework. for example,i have an object class that is loaded at runtime using loadlibrary functions. while this is being loaded and creaed, i would like to send messages to the dialogbox for viewing. the troubl eis that the object class has no knowledge of the dialog box, or the mfc app that is running.

can i use a sendmessage to get the data to the dialogbox?

something like SendMessage(NULL,WM_USER+1,data,data2);

I have tried multiple attempts but to no avail :(
Any help would be greatly appreciated.

Seven
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I have figured this out........
Seven
What was your solution?

Author

Commented:
it's a hack but it works just great.
I have a dll that i use for logging error. In this dll I just save the m_hWnd of the view that is created and then send messages to that view. the view in turn routes the message to it's parent, in this case the frame, which routes it to the dialogbox. not the cleanest in the world, but it works :)

Seven
Commented:
PAQed, with points refunded (75)

GhostMod
Community Support Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial