473,396 Members | 1,940 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.

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 1518
"B." <gu*******@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.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*******@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.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*******@gmail.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.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*******@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.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*******@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.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*******@gmail.comwrote in message
news:11**********************@c28g2000cwb.googlegr oups.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
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...
15
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...
0
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...
1
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 ?...
5
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...
5
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...
1
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...
1
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.