Runtime Callable Wrapper

Runtime Callable Wrapper

A Runtime Callable Wrapper (RCW) is a proxy object generated by the .NET Common Language Runtime (CLR) in order to allow a Component Object Model (COM) object to be accessed from managed code. Although the RCW appears to be an ordinary object to .NET clients, its primary function is to marshal calls between a .NET client and a COM object.

For example, a managed application written in C# might make use of an existing COM library written in C++ or Visual Basic 6, via RCWs.

The runtime creates exactly one RCW for each COM object, regardless of the number of references that exist on that object. The runtime maintains a single RCW per process for each object. If you create an RCW in one application domain or apartment, and then pass a reference to another application domain or apartment, a proxy to the first object will be used.

External links

* [http://msdn2.microsoft.com/en-us/library/8bwh56xe.aspx MSDN Runtime Callable Wrapper Reference]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Component Object Model — Not to be confused with COM file. Component Object Model (COM) is a binary interface standard for software componentry introduced by Microsoft in 1993. It is used to enable interprocess communication and dynamic object creation in a large range… …   Wikipedia

  • RCW — may refer to* Ramial Chipped Wood * Runtime Callable Wrapper in Microsoft Component Object Model and .NET interoperability * The RCW Catalogue, an astronomical catalogue * Revised Code of Washington …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”