I need my unmanaged app to work with managed controls, but I can not
use the /clr option. I have read that the Common Language Runtime can
be "hosted manually" which eliminates the need to turn on the /clr
option. How is this done?
I see that Jochen has already pointed you to links that explain how to load
and start the common language runtime (CLR).
Usually, once this is done, you invoke methods on managed classes. If those
methods are part of the framework, all is well. But if those methods are in
your classes there are two possibilities.
If those classes are written in C#, say, you already have CLR support. Again
all is well.
If they are written in C++ then either they are compiled with CLR support or
you use COM to access them.
The point I'm trying to make is that hosting the CLR is far from trivial.
There are good reasons for doing it (SQL server does it, ASP.Net does it, I
do it <g>). I'm just wondering why it is that you need to.
Regards,
Will