473,387 Members | 1,534 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,387 software developers and data experts.

Debugging Unmanaged DLL With C# GUI .exe From VCPP 2003 Standard

I googled and found a half-dozen good threads on debugging C# / VCPP on a
machine with both tools installed. But my co-worker and I haven't figured
out how she can debug her C++ code on her computer when her DLL is called
from my C# GUI .exe program. I have the full MSDN Universal toolset, but
she just has VCPP 2003 Standard.

(This is probably very easy and well documented somewhere in MSDN... ;-)
But neither of us is very expert yet and our attempts yesterday were
unsuccessful.)

Thanks.

-- Mark
Nov 17 '05 #1
3 3139
Ensure that:

1) You have enabled unmanaged debugging in Project properties->Configuration
Properties->Debugging->Enable Unamaged Debugging in your managed project.
The default is false.

2) You have compiled your native dll in debug configuration.

3) You have the native dll's pdb in the same directory that you are
expecifiying in your DllImport attribute.
--
Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
Nov 17 '05 #2
Rodrigo -- Thanks! I will check these things in a few hours when I get to
work. I'll post back here if we still have problems.

-- Mark
Nov 17 '05 #3
We're now debugging. For future googlers, important information copied
below is from
http://www.dotnet247.com/247referenc...45/225089.aspx

-- Mark
1. Run your application ( no debugger attached )
2. Open the task manager ( press Ctrl+Shift+Esc )
3. Right-click the process to be debugged.
4. Choose Debug.
5. Choose the correct instance of the IDE.
6. A messgae box will popup: set the 'Native' Check-box
7. Press Attach and set your break points.
Nov 17 '05 #4

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

Similar topics

2
by: Jim Chapman | last post by:
This is driving me nuts. I've been using VB.NET for about a year on this machine and decided to try C#. This is what I get when I try to debug (F11): Window title = Microsoft Development...
1
by: Ian McCarty | last post by:
Hi, Wondering if someone could help me out. I'm trying to setup remote debugging of my C# app. I've followed the instructions in MSDN and I've setup full remote debugging on the target (in fact...
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
4
by: | last post by:
I am stuck in a situation and I do believe that this should work, but it doesn't. I have a unmanaged dll, that uses MFC. This works great. Now I recompile the unmanaged dll so it contains...
0
by: Brian Henry | last post by:
I've been fighting with the Visual Studio.Net CLR debugger for a while and am getting pretty fed up. I'm trying to debug an asp.net application. I have all my debug tags set to true. And I have...
4
by: Maxwell | last post by:
Hello, Newbie question here for disposing of unmanaged resources in MC++.NET. I have a managed VS.NET 2003 MC++ wrapper class that wraps a unmanaged C++ dll. What I am trying to figure out is...
2
by: jpuopolo | last post by:
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...
4
by: Edson Tadeu | last post by:
I have imported a project from Visual Studio .Net 2003, consisting only of native (unmanaged) C++ code. Debugging was very fast in that IDE, and I didn't even notice a delay when stepping over...
4
by: Greg | last post by:
I have a very simple Visual Basic .NET 2003 class library project ClassLibrary1 configured to run an external program (in this case C:\WINDOWS\system32\wscript.exe), in the Debugging Configuration...
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: 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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.