Link to home
Start Free TrialLog in
Avatar of MattWM
MattWM

asked on

Debugging a atl com dll

Hi Experts

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?
ASKER CERTIFIED SOLUTION
Avatar of BigRat
BigRat
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MattWM
MattWM

ASKER

Thanks for your response.

What you have said seems to be right. When I load the web page I can see activity in the status bar of Visual Studio. Something appears but it’s too fast to read. But my break point is being ignored and it has a little exclamation mark next to it saying ‘The break point will not currently be hit. No symbols loaded for this document.’ Looking around on the net, a lot of people seem to be having this problem but none of there solutions seem to work.

I am in debug mode and in project properties/linker/debugging ‘Generate Debug Info’ is set to Yes. I’ve also deleted the debug directory and re-built the project but still no luck.

Any Ideas?
I use Visual Studio 6.0 Enterprise Edition (we spend a LOT of money on that at the time) and I have not had this problem, sorry.
Avatar of MattWM

ASKER

Thanks for trying.
Avatar of MattWM

ASKER

I think this question can be Ignored, I've just tried the same process in Visual Studio Dot Net (2003) and it works fine. I’ve reinstalled 2005 on a new machine and it still doesn’t work. I think it must be a bug in Visual Studio 2005

Thanks for your input BigRat