I am trying to import a dialog within a DLL to an exe. The problem is that when I call DoModal() within the exe for my DLL dialog, it does not automatically call OnInitDialog() for that dialog. It does it when I put that dialog class directly in the exe. It's almost like it doesn't recognize my dialog deriving from CDialog. I have the AFX_EXT_CLASS tag on my dialog class. It calls my DoModal. What am I doing wrong?