473,385 Members | 1,863 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.

Debugging Unmanaged ActiveX or COM

All:

I have developed an ActiveX control using unmanaged C++ (MFC).
I have also developed a C# application to server as a test harness.
Both ActiveX and test harness application are built in Debug mode.
The VS.NET (2005) project is configured for native debugging.

In the debugger, when I try to "step into" the ActiveX method, the
debugger executes the code but does not enable me to "step into" - it
behaves just like a "step over."

Has anyone used VS.NET 2003/2005 to successfully debug an ActiveX or
unmanaged COM component?

Many thanks,
jpuopolo

Feb 6 '06 #1
2 4104
jpuopolo,

You need to go to your project settings and select "enable unmanaged
debugging". This should allow you to step from managed code into unmanaged
code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"jpuopolo" <pu*****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
All:

I have developed an ActiveX control using unmanaged C++ (MFC).
I have also developed a C# application to server as a test harness.
Both ActiveX and test harness application are built in Debug mode.
The VS.NET (2005) project is configured for native debugging.

In the debugger, when I try to "step into" the ActiveX method, the
debugger executes the code but does not enable me to "step into" - it
behaves just like a "step over."

Has anyone used VS.NET 2003/2005 to successfully debug an ActiveX or
unmanaged COM component?

Many thanks,
jpuopolo

Feb 6 '06 #2
Nicholas:

Thanks, but I already tried that (in my original post as well). The
ONLY way that I have found that works is to run the ActiveX control in
the debugger by setting the host application to my test harness. This
seems to work.

So, instead of being in my test harness and starting the debugger, I go
to my ActiveX project and Debug... The EXE associated with the debugger
is the test harness EXE and I am able to debug the control.

Hope this helps some others out there...

Best,
jpuopolo

Feb 7 '06 #3

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

Similar topics

10
by: Andrew Chalk | last post by:
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However, when I get to an ASP line that references my...
2
by: Ken Allen | last post by:
I have a managed .Net assembly (C#) that invokes code in an unmanaged DLL written in C++ 6 via an unsafe assembly that invokes the C++ routines and marshals the data. The interface is not working...
2
by: Lee Crabtree | last post by:
I have a managed C++ DLL wrapping some unmanaged C++ code. I'm using this DLL in a C# program, and I need to watch some of the buffers being used. When I try to use the memory debugger window in...
2
by: Sandy | last post by:
I am confused about Unmanaged Code, How .Net Framework treate that code, What is the use of that. Thanks in advance Sandeep Chitode
0
by: Sericinus hunter | last post by:
This post is mostly for picking up by Google and information purposes. The problem itself is solved for me. Generally, debugging .Net COM dll should not pose any problems, but you will be...
0
by: RobKinney1 | last post by:
This is kinda a repost, except I am phrasing the question in a different way since I have a better idea what the problem is now. We are using the DSOFramer (...
3
by: dvestal | last post by:
Sorry if this double-posts, google just crashed on me. I'm trying to debug an unmanaged C++ DLL from a C# application. The C# app references the DLL using DLLImport attributes. They are in the...
2
by: Ed | last post by:
Hello, dear all, I have a solution that contain the managed project and unmanaged project source code, and managed project will use the unmanaged project as a library. The debugging in the...
0
by: stimpy_cm | last post by:
Hi everyone, I’m not a programmer but have a little notion about how things work. I recently downloaded an emulator for my calculator (Texas Instruments Voyage 200), the program uses a library...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.