Debugging a atl com dll

Posted on 2006-04-20
Last Modified: 2013-12-14
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(“”) 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?
Question by:MattWM
    LVL 27

    Accepted Solution

    You just simply IGNORE this silly error message about Internet Explorer and call up your HTML page. When the page loads the ActiveX object the dll gets accessed and Visual Studio will stop at your break point.

    Author Comment

    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?
    LVL 27

    Expert Comment

    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.

    Author Comment

    Thanks for trying.

    Author Comment

    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

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now