473,396 Members | 2,113 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,396 software developers and data experts.

c# include c++ and debugging

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
Nov 16 '05 #1
2 1712
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.*******@mum.de> wrote in message
news:ej**************@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

Nov 16 '05 #2
Thanks, it works.
Cheers Thomas

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> schrieb im
Newsbeitrag news:O8*************@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.*******@mum.de> wrote in message
news:ej**************@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


Nov 16 '05 #3

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

Similar topics

9
by: Sarath | last post by:
I am working with an application using ASP, getting below error when i am trying to include new asp include file. _____________________________________________________________________ Microsoft...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
3
by: SirPoonga | last post by:
Right now at the top of each of my asp.net pages I have <%@ Page Language="VB" Debug="true" %> That's fine and dandy but when it comes time for me to switch debug to true I'd rather have a...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
13
by: Salvatore Di Fazio | last post by:
Hi, I've an array in an include that is used everywhere in the project. So to avoid the problem of declaration I made the following solution: ifndef __UNWALKABLETILES__ #define...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
4
by: Jon Slaughter | last post by:
I'm using eval to excute some mixed php and html code but I cannot debug it. I am essentially using filegetcontents to load up a php/html file and then inserting it into another php/html file and...
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.