MFC dialog-based programm exits with code 0 right after start. I don`t even see the dialog itself appear. The thing is that it worked okay before I reinstalled Windows and now it doesn`t even start under Visual in debug mode (not to mention the release version)

What`s the problem?