Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Tue, 17 Jun 2008 12:19:36 +0200,    group: microsoft.public.vstudio.general        back       


Debug unmanaged C++ from C# in Visual Studio - how?   
Hi,

I've created a solution consisting of an unmanaged C dll and a C# WinForms application.

A class in the WinForms application is supposed to call two functions from my dll (using DllImportAttribute).

Now I want to debug into the dll code, but unfortunately I can't set any breakpoint in my C code. The debugger just jumps over my C# calls (like pressing F10 instead of F11).

What do I need to do to be able to debug into my C code?

Any help is appreciated.
Axel Dahmen
date: Tue, 17 Jun 2008 12:19:36 +0200   author:   Axel Dahmen am

Re: Debug unmanaged C++ from C# in Visual Studio - how?   
Did you build the C++ as debug with symbols?

-- 
The personal opinion of
Gary G. Little

"Axel Dahmen" <keentoknow@newsgroup.nospam> wrote in message 
news:F39ED752-DE16-496B-99CC-C80CF8A3F1C8@microsoft.com...
Hi,

I've created a solution consisting of an unmanaged C++ dll and a C# WinForms 
application.

A class in the WinForms application is supposed to call two functions from 
my dll (using DllImportAttribute).

Now I want to debug into the dll code, but unfortunately I can't set any 
breakpoint in my C++ code. The debugger just jumps over my C# calls (like 
pressing F10 instead of F11).

What do I need to do to be able to debug into my C++ code?

Any help is appreciated.
Axel Dahmen
date: Fri, 20 Jun 2008 11:01:24 -0500   author:   Gary G. Little

Re: Debug unmanaged C++ from C# in Visual Studio - how?   
Axel Dahmen wrote:
> Hi,
> 
> I've created a solution consisting of an unmanaged C++ dll and a C# WinForms application.
> 
> A class in the WinForms application is supposed to call two functions from my dll (using DllImportAttribute).
> 
> Now I want to debug into the dll code, but unfortunately I can't set any breakpoint in my C++ code. The debugger just jumps over my C# calls (like pressing F10 instead of F11).
> 
> What do I need to do to be able to debug into my C++ code?
> 
> Any help is appreciated.

Axel:

If you have your C++ DLL loaded in Visual Studio, can you not debug it by 
specifying your C# application as the debug executable?

Project Properties->Configuration Properties->Debugging->Command

-- 
David Wilkinson
Visual C++ MVP
date: Sun, 22 Jun 2008 08:28:40 -0400   author:   David Wilkinson

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us