VCC+ and .Net assemblies

R

Ron Harter

Has anyone used the COM interop to acess .Net asseblies from an unmanaged
C++ application?
For various reasons we have a legacy VS 6.0 C++ application that we would
like to compile with VS .Net and without the /clr switch and using the COM
interop use the XML features available in the .Net Framework.

Since we are new to .Net we need a cookbook method to expose Ssytem.XML as
COM object and then add it to our VC++ project.

Any help is greatly appreciated sine we are unable to figure it out from the
microsoft documentation.


Regards

Ron Harter
 
R

Ronald Laeremans [MSFT]

Not really possible. Only managed APIs or type hierarchies that are designed
to be used through COM Interop reasonably support that scenario.

You do not need to compile your entire application with /clr to use the .Net
framework from some piece. If you want perfect isolation you can even just
put that code in 1 DLL and call that from the rest of your application.

Ronald Laeremans
Visual C++ team
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top