473,795 Members | 2,974 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 4120
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
3893
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
1802
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
1508
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
2730
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
1472
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
1451
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
11502
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
4029
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
9672
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
9519
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
10439
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...
1
10165
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
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.