I am tryign to load a dialog box from a resource, but I cannot get it to open without crash or illegel operation? how do I make these things work?

SPH