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 - c++ without /clr

Reply
 
Old 06-13-2008   #1 (permalink)
Jeigh


 
 

c++ without /clr

Hi.

I would like to be able to call functions that exist in a class library that
is referenced as a project reference from a C++ console application.

I've got a 40000+ line C++ app that doesnt use the .net framework. Most of
the code was written in a manner to support compiling across different
platforms (unix/windows/etc...) so it isn't /clr friendly. We're scrapping
that requirement in this next release.

I wrote a VB.NET class library.

I want to be able to call the methods from the class library from the C++
app. When I add the /clr compile option, the project brings up thousands of
compile errors.... I don't want to rewrite the entire C++ app all at once
to accomidate these errors, so I've got to find a different way to call the
functionality from the vb.net class library from C++.

An alternate option that one of my coworkers brought up was to register the
vb.net assembly in COM and then call the COM object from C++... but I also
don't want to persue that road because doing so would force me to reregister
the assembly in COM every time I updated the assembly.

Is there another way to call the methods that exist in my vb.net project
from C++?

Thanks,

JRF



My System SpecsSystem Spec
Reply

Thread Tools



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