I’ve been toying with ActiveX components in Visual studio 2005. I start with creating a ATL project and then adding and ‘ATL Simple Object’ Class and then adding a method like Test(). Debugging this method is very easy if I have created the project as an exe.
I just create a simple web page with some vbScript in it that uses CreateObject(“foo.bar”) and that calls the method Test() on the object.
Press F5 in Visual Studio to start debugging and load the web page into IE. And any break points in Test() are hit.
However if I create the project as a dll, when I hit F5 to start debugging it asks me to choose a program that will call the component. I pick Internet Explorer and I get the following message:
Debugging information for ‘IEXPLORE.EXE’ cannot be found or does not match. No symbols loaded.
Can anyone tell me the best way of debugging this dll?