Is it illegal to define a program-global dialog box object? It compiles perfectly, but when I run it, it gives me a runtime debug assertion error.
This is a dialog based app so I have a main dialog class called CTheDlg which is run in a modal loop in CTheApp.
What I need to do is have access (inspect and change) to a data member in CTheDlg throughout the whole program. Is there a better method?