DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sat, 4 Aug 2007 09:54:01 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    krzys


How to bind to existing CLR in an unmanaged container process?   
Hi,

I'm implementing an unmanaged C++ embedded object to live in OLE containers, 
such as WINWORD.EXE, that needs to host and execute some .NET code. I would 
normally instantiate my CLR from the unmanaged code by CorBindToRuntimeEx, 
then instantiate my .NET component in it. However, in many places it is noted 
that one cannot host two different versions of CLR in the same process. Since 
I don't control the code of my container (which would be WINWORD.EXE, for 
example), I can't know in advance whether there are any CLRs already running 
in it. Is it possible to somehow learn this, then, and possibly bind to some 
already running instance of CLR in the process to execute my .NET code, as 
opposed to creating a private CLR myself? What other options do there exist 
to host my .NET code in an  unmanaged process where other instances of CLR 
might be running, especially if these CLRs might be older versions of .NET? 
Is it possible to guarantee that my personal freshly updated copy of .NET 3.5 
gets loaded first, and everything else is sharing it afterwards?

Thanks,
Krzys
http://www.cs.cornell.edu/~krzys/
Date:Sat, 4 Aug 2007 09:54:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us