PC Review


Reply
Thread Tools Rate Thread

c# include c++ and debugging

 
 
thomas
Guest
Posts: n/a
 
      5th Jan 2005
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


 
Reply With Quote
 
 
 
 
Dan Bass
Guest
Posts: n/a
 
      5th Jan 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
thomas
Guest
Posts: n/a
 
      5th Jan 2005
Thanks, it works.
Cheers Thomas

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> schrieb im
Newsbeitrag news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>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
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I skip debugging Ajax when debugging my code? AAaron123 Microsoft ASP .NET 3 28th Jul 2009 05:07 PM
webbot include working in Firefox but not in IE 7 (include pagejavascript problem) RC Microsoft Frontpage 3 27th Apr 2008 10:23 AM
Include a button on toolbar to include/exclude original text when. =?Utf-8?B?bW9vbjE5NTE=?= Microsoft Outlook 0 29th Mar 2005 07:47 PM
No Debugging of C# Server-Side Script, but Code-Behind Debugging Works Johann Blake Microsoft ASP .NET 1 5th Jan 2004 03:01 PM
How to add include files for debugging Mart Rogers Microsoft Dot NET 0 14th Aug 2003 12:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:39 AM.