469,625 Members | 1,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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 1366
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by James L. Brown | last post: by
5 posts views Thread by jlea | last post: by
1 post views Thread by Allen Maki | last post: by
6 posts views Thread by =?Utf-8?B?RmFiaWFu?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.