473,835 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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::Somet hing().

#using <mscorlib.dll >
using namespace System

public __gc class CppWrapperClass
{
private:
CppClass m_class;
public.
void test()
{
m_class.Somethi ng();
}.
}

--- snip ---

Thanks in advance
Thomas
Nov 16 '05 #1
2 1730
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******** ******@TK2MSFTN GP11.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::Somet hing().

#using <mscorlib.dll >
using namespace System

public __gc class CppWrapperClass
{
private:
CppClass m_class;
public.
void test()
{
m_class.Somethi ng();
}.
}

--- 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******** *****@TK2MSFTNG P12.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******** ******@TK2MSFTN GP11.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::Somet hing().

#using <mscorlib.dll >
using namespace System

public __gc class CppWrapperClass
{
private:
CppClass m_class;
public.
void test()
{
m_class.Somethi ng();
}.
}

--- 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
3003
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 VBScript runtime error '800a0006' Overflow: '' ____________________________________________________________________ I am sure that there is no error in the new asp file as if i delete any existing include file then no issues.
0
3232
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 converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
16
4231
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 project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
3
1059
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 central location to switch it, not go through each file. Is there a way to do that?
5
2960
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 final, never installed beta) installed on this box if it makes a difference (I did not install VS Development Web Server as I'm already using the XP web server). I've seen that I need to attach to the native IIS engine, but I don't know what it's...
13
1941
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 __UNWALKABLETILES__ #define UNWALKABLETILES 16 /*!< Number of elements in UnwalkableTiles array. */
5
7804
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 app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
4
3383
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 then using eval to execute the final product. If I were to use include and output buffering instead of filegetcontents would it allow be to debug the code? (I have to capture the include so it can be modified which is why I used...
4
12700
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 place a stop directive in the code which ends up doing the same thing. The problem with this is that you can't debug browser side Javascript in the same debug run. You get a "The breakpoint will not currently be hit. The document is not loaded." if...
0
9808
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9652
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10561
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10235
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9346
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5804
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3089
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.