-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SenthilVel
Message 6 in Discussion


HI Venkat 
 The best method is Using the RCW. 
 See you are trying to EXECUTE a unmanaged Code (dll) in your managed environment (C# 
+  CLR) . so for making this to happen , yu must use the RUNTIME CALLABLE WRAPPER , so 
that this makes yur dll safe to run in the managed execution. i think CCW,RCW 
-COMINTEROP is the only way with which yu can use the dll's. 
 The RCW is responsible for handling all interaction between the .NET client code and 
the COM component: <o:p></o:p> 
�                     Creating and binding to the underlying COM object. <o:p></o:p> 
�                     Consuming COM interfaces and factoring the interfaces into a 
managed form. <o:p></o:p> 
�                     Translating and marshaling data between environments. 
<o:p></o:p> 
�                     Managing the lifetime of the wrapped COM object. <o:p></o:p> 
�                     Translating COM HRESULT values into .NET exceptions. <o:p></o:p> 
The RCW is a managed object and is allocated from the heap maintained by the CLR. As 
with any other managed object, references to the RCW are traced by the runtime, and 
the RCW is subject to garbage collection.<o:p></o:p> 
The RCW is responsible for handling all interaction between the .NET client code and 
the COM component, including (but not limited to): <o:p></o:p> 
�                     Creating and binding to the underlying COM object. <o:p></o:p> 
�                     Consuming COM interfaces and factoring the interfaces into a 
managed form. <o:p></o:p> 
�                     Translating and marshaling data between environments. 
<o:p></o:p> 
�                     Managing the lifetime of the wrapped COM object. <o:p></o:p> 
�                     Translating COM HRESULT values into .NET exceptions. <o:p></o:p> 
The RCW is a managed object and is allocated from the heap maintained by the CLR. As 
with any other managed object, references to the RCW are traced by the runtime, and 
the RCW is subject to garbage collection.<o:p></o:p> 
. 
with regds 
Senthil  
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to