I am trying to create a dll that contains a class derived from CDialog. Whenever I try to call DoModal() on the class I get an assertion. It is failing in the DoDataExchange() call in CDialog::DoModal(). "No data exchange control with ID xxxx", in my case 1005, is the problem I have tried including the resource.h file from the dll with no luck, renamed so it would not conflict with the resource.h from the calling project. I am developing under NT with VC++ 5 sp3. The dll contains MFC stuff and STL stuff.