It is possible.
Issues I am aware of (OTOMH):
* somewhat increased load times
* __declspec(appdomain) variables are initialized when the CLR is loaded (by
the module .cctor) - don't access them earlier
If you face other issues, let me know.
Marcus Heege
"bonk" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am trying to create a c++ dll or lib (not COM) that contains a little
> bit of managed code and a lot of unmanged code using c++/CLI. Basically
> some classes rely on managed bits internally. But nothing of that managed
> stuff will be exposed to the outside. The user of that dll is suppsed to
> "see" only plain unmanaged c++ classes so that if he uses that dll he does
> not have to compile his code using that /CLR switch.
>
> Do you think something like that is possible? If so, how ?
> Or will I have to use COM if I want create and use dlls that also contain
> managed code ?
|