I guess you have to implement the default ctor for WinClassMain class.