Did you include .lib file containing info about CMyDialog class?