473,693 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4115
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.co m

"jpuopolo" <pu*****@gmail. com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.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
3884
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 ActiveX control the debugger does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the debug executable I have the same problem. Break points in the ActiveX...
2
1797
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 properly. Is there a way to have the C++ 6 debugger running on the unmanaged DLL when it is invoked from the .Net debugger? I cannot step into the DLL, but can I access it via a separate debugger? Or am I left with instrumentation as the only...
2
1502
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 Studio, the pointers are all pointed to 0x0000, and that space is filled with question marks, instead of the more common hex. I'm assuming there's something I'm missing here, but I cannot for the life of me figure out what it is. Any ideas?
2
2722
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
1463
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 experiencing difficulties when debugging with VS2003 while there is .Net 2.0 installed. .Net 2.0 execution engine (mscoree.dll) will not allow VS2003 debbuger through, and problems which occur in this scenario may range from IDE crash to "unable to...
0
1444
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 ( http://support.microsoft.com/?id=311765 ) in our just about released project. The bug is simple... going to Word externally and comming back to our embeded Word control results in the toolbar (or also known asa CommandBars in the automation document) will no longer accept clicks. ...
3
11490
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 same solution. Here's what I've done so far: 1) Enabled unmanaged debugging in the C# application's property pages. 2) Set the DLL's output folder to the same location as the C# app's output folder. 3) Enabled debug info in the C++ DLL, and...
2
4021
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 managed code is fine. But when the instruction run into unmanaged function, it can not step into the unmanaged code. Is this a fault of the VS2005?
0
379
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 created for .Net framework 1.0 and 1.1. I also activated the compatibility mode for Windows XP SP2 (Which it was the OS the programs were created for). By the way Iíve an HP Pavillion with Intel Core 2 Duo 2.0Ghz processor, and my OS is Windows Vista...
0
8611
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8549
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9100
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8970
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8815
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4332
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2989
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2245
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.