Re: mscoree.dll creating new appdomain with local configuration
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Mon, 2 Oct 2006 12:11:12 -0400
"Calinga" <Calinga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7BF89782-2AE1-491B-90FE-7479F25B2B24@xxxxxxxxxxxxxxxx
I am creating a managed plug-in for a com based host application. For the
host application to find the new plug-in, I have to write some bits into
the
registry.
...
How easy is it to create a smarter mscoree.dll that knows about the
ConfigFile entry in the registry and does create a new AppDomain with the
Configuration file. Is it possible at all.
If someone has done it before or has a proper understanding what it would
be
all about, please let me know.
I'm not sure I understand your question exactly. MSCOREE is provided by the
o/s. It is not modifiable or replaceable.
I can tell you though that I wanted to permit managed plug-ins to be loaded
by a native server of mine. The way I chose to get the application domain
configured the way I wanted it was to use the "hosting" API. It was a bit of
work, but in the end, I got the domain I wanted and the interoperability I
needed.
If you want to go that route take a look at CorBindToRuntimeEx()
http://msdn2.microsoft.com/en-us/library/99sz37yh.aspx
which is what actually starts the CLR in a process.
The hosting overview is here
http://msdn2.microsoft.com/en-us/library/9x0wh2z3.aspx
Regards,
Will
.
- Follow-Ups:
- Prev by Date: Re: Interop from ASP -> .NET assembly, how to determine caller...
- Next by Date: Re: Reflection messing up the type hierarchy
- Previous by thread: Re: Interop from ASP -> .NET assembly, how to determine caller...
- Next by thread: Re: mscoree.dll creating new appdomain with local configuration
- Index(es):
Relevant Pages
|