Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Jerde - 22 Jul 2005 08:09 GMT
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
Rodrigo Corral [MVP] - 22 Jul 2005 08:49 GMT
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.

Signature

Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org

Mark Jerde - 22 Jul 2005 08:56 GMT
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
Mark Jerde - 26 Jul 2005 12:42 GMT
We're now debugging.  For future googlers, important information copied
below is from
http://www.dotnet247.com/247reference/msgs/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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.