Quote Originally Posted by avirat View Post
This simple code does not works. DoModal returns -1.
Could be that the resource of the dialog cannot be loaded. Have a look at AfxSetResourceHandle.