Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - mfc dll calling clr?

Reply
 
Old 06-09-2009   #1 (permalink)
dave


 
 

mfc dll calling clr?

I have an mfc dll that is loaded dynamically from a main mfc app. Using vs
2008. I would like to add the capability to use the LINQ to XML functionality
from .net 3.5 in it. when i change just the option in the project
properties to add clr support it appears that the constructor for a static
instance of a class is not being called which then breaks my initialization
sequence. am i missing something in the setup? or is there some better way
to do this from an mfc dll to read and write xml??

My System SpecsSystem Spec
Old 06-10-2009   #2 (permalink)
dave


 
 

RE: mfc dll calling clr?

Ok, i got it to build and run by limiting clr support to 2 cpp files in the
project. I can write xml using linq to xml from data in my main program, so
all the data connections seem ok. One annoyance now is that the debugger
won't let me step from the native to the managed code within the dll. I can
stop at the call to the function in the managed code but it won't step in,
and breakpoints in the managed code disable themselves. I have changed the
debugger from auto to mixed with no effect. the message on the breakpoint
says no executable code is associated with it maybe because of preprocessor
directors or compile/link options... but which ones might do this??
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Calling 32 bit COM+ from DotNet App on a 64 bit OS .NET General
calling value from CSV file... PowerShell
Calling ID Vista mail
Bug calling [gc]::collect() PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46