William,
At this point I have gotten thoroughly mixed up. Let me review:
I have two projects, one dependent on the other:
1. The first project is my Visual C++ program. I am compiling this project
as unmanaged, native, except for two modules. In the project properties, I
have set "No common Language Runtime support", Debug Information Format =
"Program Database for Edit & Continue (/ZI)", and Debugger Type = mixed.
There are two files in this project that I am compiling with /clr. For
these, I have set Debug Information Format = disabled. One of these files
uses a dialog class defined in the 2nd project.
2. The second project was created from the example in the MSDN Library
entitled "Hosting a Windows Form User Control in an MFC Dialog box". This is
a Visual C# Windows control library project. It creates a a Windows Form User
control that will be hosted in the MFC dialog box.
For this 2nd project, I have set Debugger type = Mixed, Debug Information
Format to Program database (/Zi), and Common Language Runtime support to
"Pure MSIL Common Languare runtime support (/clr:pure).
Are these settings correct?
Thanks,
Jim
"William DePalo [MVP VC++]" wrote:
"Jim Walsh" <Ji******@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...
Thanks for your quick reply to my posting.
You are welcome.
1. I am using VS2005.
OK. I asked because 2003 sometimes has difficulty in "auto" debug mode. The
only mixed mode project I have is built with it and not 2005 so I don't know
if that has a bearing.
2. Debugger type is set to Auto - I will change this to mixed.
As long as you have a mixed-mode project I don't think it can hurt.
3. "Did you turn off the edit-and-continue option but continue to generate
the PDB file?" I don't know the answer to this question...I am new to
managed
code.
OK. Choose Properties from the Project Menu. Then in the left pane make sure
that the C++ options are expanded (click on the + sign if necessary). Select
the General item. In the right pane look for Debug Information Format.
Change to Program Database and rebuild your project.
Regards,
Will
www.ivrforbeginners.com