You could host Rotor in-process inside a native app using the same
mechanism that clix.exe uses:  call Win32 LoadLibrary() on mscoree.dll,
then GetProcAddress for "_CorExeMain2" and call it.  You *might* need to
first call LoadLibrary() on rotor_pal.dll and call its PAL_Initialize()
before loading mscoree.dll, just to be sure that the PAL is ready to go.

sscli\docs\techinfo\native_managed_interop.html describes Rotor's
"Foreign Function Interface" (FFI) which can be used to make calls from
native C/C++ code into managed code.  It would be a logical starting
place to build an interop layer that wraps a managed object with a COM
object.

Barry
This posting is provided "AS IS" with no warranties, and confers no
rights.

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan Herring
Sent: Wednesday, November 26, 2003 3:38 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET-ROTOR] Embedding rotor w/ Platform COM?

[Try 3: After removing the digital signature, and after having it being
tossed as "spam".]

After peering at rotor for a while, it seems that if COM exists on the
platform, you could write an alternate PAL that took advantage of the
native COM. It seems that you could get interop out of rotor into COM
objects that way. However, I'm also interested in hosting the rotor
runtime by a native COM client. I didn't see a way to do this offhand.
Is this feasible? Is the code in rotor somewhere, or would I have to
write my own COM wrapper?

Thanks, 
nh

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to