Hi! There is no any problems of using the AtlComPtrAssign() method if you are creating the ATL project using MSVC wizard (I've tried it). If you are adding ATL support to an existing MFC application you can follow this steps: 1. From ClassView, select the project to which you want to add ATL support, and click the right mouse button. 2. From the popup menu, click New ATL Object. 3. When prompted, click Yes to add ATL support. 4. From the ATL Object Wizard dialog, select the object you want to add. Note If you only want ATL support without adding any ATL objects, click Cancel in the ATL Object Wizard. Good luck, Alex Gorev, Dundas Software. ================== The original message was: Hello,
I am trying to add a background image to a control. I was trying to use Mihai Filimon's method (see Adding background image to any control) but I am have 3 link errors, live "unresolved external... AtlComPtrAssign(..) ). I added atl.lib to my project settings. Is there any other thing I might have forgotten to do?
Thank you.