473,560 Members | 3,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot debug from unmanged code into managed code

B.
my small project has two files, umg.cpp (unmanaged c++) and mged.cpp
(MC++), and unmanged code will call managed code. However, I cannot
debug from unmanged code into managed code. Can anyone help me to solve
the problem?

Oct 11 '06 #1
6 1541
"B." <gu*******@gmai l.comwrote in message
news:11******** *************@h 48g2000cwc.goog legroups.com...
my small project has two files, umg.cpp (unmanaged c++) and mged.cpp
(MC++), and unmanged code will call managed code. However, I cannot
debug from unmanged code into managed code. Can anyone help me to solve
the problem?
From the VC++ menu:

Project -Properties -Configutation Properties -Debugging -Debugger
Type

Change from whatever it is to "Mixed"

-cd
Oct 11 '06 #2
B.
Hi Carl,

I already tried that, but it didn't work for me.
Carl Daniel [VC++ MVP] wrote:
"B." <gu*******@gmai l.comwrote in message
news:11******** *************@h 48g2000cwc.goog legroups.com...
my small project has two files, umg.cpp (unmanaged c++) and mged.cpp
(MC++), and unmanged code will call managed code. However, I cannot
debug from unmanged code into managed code. Can anyone help me to solve
the problem?

From the VC++ menu:

Project -Properties -Configutation Properties -Debugging -Debugger
Type

Change from whatever it is to "Mixed"

-cd
Oct 11 '06 #3
B.
Hi Carl,

I already tried that, but it didn't work for me.
Carl Daniel [VC++ MVP] wrote:
"B." <gu*******@gmai l.comwrote in message
news:11******** *************@h 48g2000cwc.goog legroups.com...
my small project has two files, umg.cpp (unmanaged c++) and mged.cpp
(MC++), and unmanged code will call managed code. However, I cannot
debug from unmanged code into managed code. Can anyone help me to solve
the problem?

From the VC++ menu:

Project -Properties -Configutation Properties -Debugging -Debugger
Type

Change from whatever it is to "Mixed"

-cd
Oct 11 '06 #4
"B." <gu*******@gmai l.comwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
Hi Carl,

I already tried that, but it didn't work for me.
OK, let's get some more details then.

What kind of project is this (Console program, Windows program, DLL, etc)?

Is the entry point managed or unmanaged?

Are you debugging a release build?

Have you tried (or is this) the simplest possible implementation that might
illustrate the problem you're encountering?

-cd
Oct 11 '06 #5
B.
Guess I solved it. I have a win32 exe calling this project (DLL), and I
have set the win32 exe's build type to be mixed as well.

Thanks a lot,

Carl Daniel [VC++ MVP] wrote:
"B." <gu*******@gmai l.comwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
Hi Carl,

I already tried that, but it didn't work for me.

OK, let's get some more details then.

What kind of project is this (Console program, Windows program, DLL, etc)?

Is the entry point managed or unmanaged?

Are you debugging a release build?

Have you tried (or is this) the simplest possible implementation that might
illustrate the problem you're encountering?

-cd
Oct 11 '06 #6
"B." <gu*******@gmai l.comwrote in message
news:11******** **************@ c28g2000cwb.goo glegroups.com.. .
Guess I solved it. I have a win32 exe calling this project (DLL), and I
have set the win32 exe's build type to be mixed as well.
I assume you mean that you set the debugger type - you didn't need to change
anything in the build settings per-se.

The debugger settings for the project that launches the debugger (the EXE)
determine how the debugger will behave. As you discovered, the fact that
the EXE loads a DLL that has the debugger type set to Mixed has no effect.

Glad you got it working.

-cd
Oct 12 '06 #7

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

Similar topics

4
1596
by: James L. Brown | last post by:
Hello I'm currently working on a project, that contains one .net (VB) executable and a C++ (MFC) DLL. Now, what I want to do is to call the functions in the dll out of my managed code //managed code (the unmanaged code declarations are just the same - but unmanaged) Public Class Win32Call <StructLayout(LayoutKind.Sequential)> Class MYSTRUC...
15
1380
by: _BNC | last post by:
Recently I had posted a query about intermittent problems with a C++/Interop scheme (unmanaged C DLL wrapped in unmanaged C++, wrapped in managed C++, all accessed by C#). The system works fine when unstressed, but fails under stress. Well...I just noticed short mention in Prosise's book, of all places, re threading. He indicated that the...
0
242
by: P Reddy | last post by:
Hi All, Greetings!!! I have a question. Please respond.... I am trying to write a C# component that need to inherit some of the the interfaces from unmanged code(VC). I think one way to resolve this is to port unmanged interfaces and header files in to manage C++ as Visual Studio allows porting and compiling all this
1
1376
by: skg | last post by:
I am passing the address of pointer like char** from managed extension and getting the its initialized value from a C library dll. How can i free the memory from the code in Managed Extension ? Here is a sample C function i am calling from managed extension. C dll Code ==============
5
1094
by: jlea | last post by:
How many times have we had a program that works toot-sweet in debug but dies in release? Too many. I've created .NET assembly containing a bunch of managed wrapper C++ classes that wrap unmanged C++ classes; these unmanaged C++ classes are located in a Win32 library file. The library is built using MFC as shared in debug but static in...
5
3406
by: Maxwell | last post by:
Hello, Newbie question here. I have a VS.NET 2003 MC++ (not C++/cli) project where I have a managed class reference in a unmanaged class...simple enough. To keep things short I am for the most part attempting to do what is this article by Nish: http://www.voidnish.com/articles/ShowArticle.aspx?code=cbwijw I have to hook up a unmanaged...
1
1191
by: mschuck | last post by:
Here is the scenario I'm trying to make work. I've got 2 managed C++ classes, each of which wrappes an unmanaged C++ class, kind of like so: __nogc class UnmanagedClassA { public: void SetUnmanagedB( UnmangedClassB* val ); ....
1
1171
by: Allen Maki | last post by:
I would be pleased if someone gives me a general idea; how I am going to do this. I am using visual C++ .NET 2003. I made a simple program using conventional C++ code. This program accepts data from the user, does some calculations and outputs the result back to the user using the console.
6
6561
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hi, I have a pretty complicated program which consists of the following basic modules: 1. a C# application 2. a C++/CLI application which is controlled by the C# app via IPC remoting 3. lots of native code which is wrapped by the managed C++/CLI code A remark to this complicated structure: We are controlling hardware via
0
7636
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...
0
7557
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...
0
8070
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6194
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...
1
5461
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5176
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...
0
3590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1171
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
882
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...

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.