|
-
Oct 17th, 2006, 01:58 AM
#1
Thread Starter
Junior Member
Hot to debug Com COmponents
How to debug com component in .Net
Hai
How can i debug Com component in .Net environment. i am working with c# windows 2005 and want to debug the com components which referencing
Please help me in this one
thanks and Regards
vinay...
Last edited by vinaykumar; Oct 19th, 2006 at 02:32 AM.
-
Oct 17th, 2006, 02:03 AM
#2
Hyperactive Member
Re: Hot to debug Com COmponents
Hi,
First of all you are in the vb.net forum.
Saying that, in c# or vb or wathever language, you cannot debug com objects if you do not have source code (if you do not developed probably (99%) you will not have)
-
Oct 18th, 2006, 02:38 AM
#3
Thread Starter
Junior Member
Re: Hot to debug Com COmponents
i am having the source code with me.
Just i need to debug along with my .Net application
Please send me reply fast as it is urgent for me
Waiting for the replies
Thanks and Regards
Vinay Kumar
-
Oct 18th, 2006, 02:52 AM
#4
Hyperactive Member
Re: Hot to debug Com COmponents
The you should add the dll project to the solution,
FIle->add->project
the you will have two projects on the same solution and you can debug both.
-
Oct 18th, 2006, 03:50 AM
#5
Thread Starter
Junior Member
Re: Hot to debug Com COmponents
This is the following .Net code
private void button1_Click(object sender, EventArgs e)
{
Button1.Text="test";
Project1.Class1Class cls = new Project1.Class1Class();
cls.showButtonValue();
}
Project1.Class1Class is a class in com component.
i put the debug point in the Button and com component when i click the button , After going into the line
Button1.Text="test"
it should debug the com component for
cls.showButtonValue();
so that i can check whats happening
Please let me know if any doubts
-
Oct 18th, 2006, 03:56 AM
#6
Hyperactive Member
Re: Hot to debug Com COmponents
You should go to the class
in the method showbuttonvalue() and put a breakpoint there on the first line of code for this method.
By the way this is a VB forum not a C forum
-
Oct 18th, 2006, 04:14 AM
#7
Thread Starter
Junior Member
Re: Hot to debug Com COmponents
Though i kept the break point it is not working
I tried this with Vb2005 .But unable to reslove it
-
Oct 18th, 2006, 04:41 AM
#8
Hyperactive Member
Re: Hot to debug Com COmponents
A Project must be in debug mode to use breakpoints
You can change on the 'configuration manager' on the 'build' menu entry
-
Oct 18th, 2006, 04:49 AM
#9
Thread Starter
Junior Member
Re: Hot to debug Com COmponents
Boss
For .Net code debugging is working fine
for the vb code it is not redirecting to the VB Code .
i want to know how to debug a com component in .Net?
Anyway thanks for the reply
-
Oct 18th, 2006, 05:02 AM
#10
Hyperactive Member
Re: Hot to debug Com COmponents
Man,
Finally I got you
I think is not possible to debug that, because the debug feature only can control what is in the the devolpment environment; your class is outside it does not matter if you have the source code or not.
You have two options
-use a dummy project on VB6 to test all functionality for this COM object; once it works perfectly the add to a .net project
-Imports your com object to .NET (it is not as simple as making cofee) and create a .NET dll with the functionality of your com object.
-
Oct 18th, 2006, 08:02 AM
#11
Thread Starter
Junior Member
Re: Hot to debug Com COmponents
i added the COM class to the .net application.so debug environment can find it and it is not a right thing to convert them into .net dlls .
Waiting for any suggestions
Thanks and Regards
VInay Kumar
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
|