Re: c# include c++ and debugging

From: thomas (t.wegener_at_mum.de)
Date: 01/05/05


Date: Wed, 5 Jan 2005 12:53:54 +0100

Thanks, it works.
Cheers Thomas

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> schrieb im
Newsbeitrag news:O83Uqmx8EHA.936@TK2MSFTNGP12.phx.gbl...
> Assuming your using Visual Studio .Net, I've seen two ways of doing this.
> Got to Project -> properties then look for the Debugging in the left pane.
>
> 1. Project -> [project] Properties -> Configuration Properties ->
> Debugging -> Enable Unmanaged Code [Set to True]
>
> OR
>
> 2. If the first option doesn't exists, then there's an option for what
> code to debug. The project settings will probably be set to debug "Auto".
> This means it will detect whether the startup code is initially managed,
> or native, and then only debug from there in that code type. IE. start up
> is managed, only managed will be stepped through in that debug session, if
> start up is native, then managed cannot be stepped through.
> The setting can be change to Native, Managed, or Both as well. Select
> "Both" and you should be sorted.
>
> Thanks.
>
> Dan.
>
> "thomas" <t.wegener@mum.de> wrote in message
> news:ejXFkax8EHA.3616@TK2MSFTNGP11.phx.gbl...
>>I have an c# exe-application which referenced a managed c++ dll.
>> The managed c++ dll is an wrapper for some unmanaged c++ classes in a
>> separate dll.
>>
>> That works fine but I can't debug in the unmanged c++ dll.
>> Is there anyone who know why I can't debug in the unmanged c++ dll?
>> Or is ther any way to do this?
>>
>> --- snip ---
>>
>> e.g. managed c++ dll:
>>
>> I can't debug in the method CppClass::Something().
>>
>> #using <mscorlib.dll>
>> using namespace System
>>
>> public __gc class CppWrapperClass
>> {
>> private:
>> CppClass m_class;
>> public.
>> void test()
>> {
>> m_class.Something();
>> }.
>> }
>>
>> --- snip ---
>>
>> Thanks in advance
>> Thomas
>>
>
>