I'm assuming this is a non-managed program, not Windows Forms which is managed cli/c++.
Why don't you call win32 api MessageBox() , which can be called from main().
main() can use the other windows controls providing it knows about the window's HWND handle.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
How are the functions in main() getting called? Pass them another parameter -- the HWND to the command history window.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343