Hi,

When my SDI application can't connect to its database, which is done in the Document class, it must end. How can this be done? I've tried PostQuitMessage en SendMessgage(WM_CLOSE), but they don't work, I think because the window is't created yet.

Thanks in advance,

Stijn