I'm trying (For the first time) to create a dll containing resources using MFC. I'm at the stage of just creating a simple dialog. It compiles but when I use the dll with the test app it asserts at afxwin1.inl on line 22. It's a failure with AfxGetResourceHandle(). I'm not sure how to go about creating this dll...

Basically I created it with the appwizard and it was fine. I added a CPropertyPage derived class in association with a dialog resource then I got linker errors about DllMain being defined multiple times. I finally figured out that since I began including afxwin.h I needed to get rid of the DllMain() function. But since then I've had the assertion mentioned above.

I'd appreciate any help very much.