"Ivan Leo Puoti" ivanleo@gmail.com wrote:
Jonathan Ernst wrote:
- Please tell me if you see things that are bad in the attached code,
so that I'll fix it before submitting a patch.
I think you probably want to pass a valid HINSTANCE to DialogBox, to do this you should start your program with WinMain() instead of main().
main() works just fine. GetModuleHandle(0) returns current HINSTANCE.