I like to write a modeless dialog based app, but I have a problem. When the program starts, the window close immediately.
The same code works fine when I make a moda
I'm not seeing anything that tells the application to stay alive after opening the modeless window. You need at least one 'modal' style window, or something else to control termination of the application.