473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Debug a C# COM object from VS 6.0 C++ client

I've been writing C# code for maybe as much as 2 weeks now. The code I'm
writing is exposed as a garden variety COM object that VC++ 6.0 and VB 6.0
can use. Coincidentally my COM development track record is also 2 weeks
long. :-) The time has come to debug down into the C# COM object from a
VC++ 6.0 dll. How do I get into the COM object's code. I can use the VC++
6.0 debugger to get into the VC++ 6.0 code but after that I am lost. Help!
Thanks.

Craig
Nov 16 '05 #1
2 3445
Craig,

There's an option in the Visual Studio .Net to allow debugging for unmanaged
code.
If you go to project -> properties -> debugging. There's an option for
"Enable Unmanaged Debugging".
What I'd do is then import the VS 6.0 project and run the client from here.

If this is not an option, then what you can do is open the COM exposed .Net
assembly in VS.Net, as well as the VS 6.0 client application. Start the
client application, then run the .Net application, which you can connect to
the process you started with VS 6.0.

Hope that helps.

Daniel.

"Craig" <WeeksAtSprynetDotCom> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
I've been writing C# code for maybe as much as 2 weeks now. The code I'm
writing is exposed as a garden variety COM object that VC++ 6.0 and VB 6.0
can use. Coincidentally my COM development track record is also 2 weeks
long. :-) The time has come to debug down into the C# COM object from a
VC++ 6.0 dll. How do I get into the COM object's code. I can use the
VC++
6.0 debugger to get into the VC++ 6.0 code but after that I am lost.
Help!
Thanks.

Craig

Nov 16 '05 #2
This turned out to be *really* easy with Visual Studio .Net. I just start
up the old C++ 6.0 application and connect to it's process from VS .Net.
Then I can set breakpoints in both the 6.0 and the .Net source code. Sweet.

Craig

"Dan Bass" <Not Listed> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Craig,

There's an option in the Visual Studio .Net to allow debugging for unmanaged code.
If you go to project -> properties -> debugging. There's an option for
"Enable Unmanaged Debugging".
What I'd do is then import the VS 6.0 project and run the client from here.
If this is not an option, then what you can do is open the COM exposed ..Net assembly in VS.Net, as well as the VS 6.0 client application. Start the
client application, then run the .Net application, which you can connect to the process you started with VS 6.0.

Hope that helps.

Daniel.

"Craig" <WeeksAtSprynetDotCom> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
I've been writing C# code for maybe as much as 2 weeks now. The code I'm writing is exposed as a garden variety COM object that VC++ 6.0 and VB 6.0 can use. Coincidentally my COM development track record is also 2 weeks
long. :-) The time has come to debug down into the C# COM object from a VC++ 6.0 dll. How do I get into the COM object's code. I can use the
VC++
6.0 debugger to get into the VC++ 6.0 code but after that I am lost.
Help!
Thanks.

Craig


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Vince C. | last post by:
Hi. This is a feature that is really going on my nerves as I've been writing SOAP Web services using ASP and SOAP toolkit 3.0. My web services ASP scripts send XML data to the client...
6
by: william | last post by:
Could anyone tell me how to debug a Serviced Component (COM+) in .NET? I tried to attach the debugger to the host process, but failed, got error "unable to attach the process. There is no managed...
0
by: Ralf Pelzl | last post by:
Hello, i've create a Web-project on an IIS6.0 (remote server running Win2003). I can debug that but only if i log in on the server locally. And i must be the same user as on the client machine. If...
1
by: umen | last post by:
Hello im build very simple ATL server component (takes string from client an returns uppercase string) i like to debug this string from visual studio so i could see wha appends when i invoke the...
10
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New...
4
by: TARUN | last post by:
Hello all I am new to web technology, so plz excuse me for posting such a silly question . I have a code in C#.NET , ASP.NET, Javascript . I am a begginer of Javascript i don't understand...
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
15
by: teppic.xxviii | last post by:
Ok, so this is a little script that I've been working on and off for the past year or so, and finally I think it might be ready to be put to the ultimate test: other people! ...
2
by: Peter K | last post by:
Hi I have a VS2005 c# solution which includes a webservice and a windows application which uses the webservice. How do I "debug" into the webservice from the application? I can for example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.