|
-
Jul 4th, 2001, 02:36 AM
#1
Thread Starter
Fanatic Member
Debug COM object
What is the best way to debug a com object? Please share your expertise.
-
Jul 10th, 2001, 04:43 AM
#2
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|