Results 1 to 2 of 2

Thread: Debug COM object

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2001
    Location
    Vietnam
    Posts
    613

    Debug COM object

    What is the best way to debug a com object? Please share your expertise.

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Bristol, UK
    Posts
    86
    For ActiveX controls, add a test project to the control project ( to make a project group ) and add your control to a form in the test project. Make sure that you close the controls design window first or you won't be able to put it on your form.

    For ActiveX dll's, again add a test project to create a project group, reference the dll in the test project and use it as you would use any other ActiveX dll.

    For ActiveX .exe's, make an executable ( to give it a guid ) and then run the .exe in the IDE. Start another instance of vb and use this to test the exe. When you run the ActiveX exe project, the registry tells any apps using this component to use the one in the IDE rather than the compiled version. This means that you can add breakpoints and step through the code of your component.
    The point of creating an executable for your component is so that your test project doesn't lose its reference.

    Hope this helps

    Cenobite

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width