|
-
Nov 5th, 2003, 12:46 PM
#1
Thread Starter
New Member
Debugging COM .DLL from VB.NET
Hi all:
Sorry if this is a repeat or if this has been discussed already (searching didn't show anything relevant).
QUESTION:
Is there a way to debug a COM .DLL file that is being referenced by a .NET solution? In other words, I have a .DLL file that was written in VB6 (which I have the code for). In my VB.NET solution, I am referencing this .DLL.
Is there any way to set it up so that I can see and step through the VB6 code for this DLL when I run my VB.NET solution?
Thanks very much in advance.
Jason
-
Nov 5th, 2003, 01:43 PM
#2
You can't debug the COM DLL in the .NET environment (IDE) that I know of. What you can do is - Start debugging in the VB6 IDE ,with the COM DLL code loaded, this should bring up a dialog that has the option 'Wait for components to be created', choose that and then fire up the .NET app that uses the DLL and it should automatically debug it. I do this all the time for Word and Office Add-Ins. Its a good idea to set a breakpoint in there to test or help. The only thing to remember is that the DLL instance must be created AFTER you start the debugging in the VB6 IDE.
-
Nov 5th, 2003, 02:13 PM
#3
Thread Starter
New Member
Thanks a lot ... that worked.
-
Jan 28th, 2004, 01:57 PM
#4
Addicted Member
Is there a way to do the reverse? Debug a COM .DLL written in VB.NET that is used by a VB6 program?
-
Jan 28th, 2004, 02:09 PM
#5
I haven't tried it but the samething should work. Fire up VS.NET and run the dll then run the VB6 app that uses it. You may have to set the 'Start external application' options in the configuration manager properties.
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
|