This blog is a knowledge base...where I clip cool tricks and urls

.NET-COM RCW Marshalling

clipped from

.NET Marshalling

Thus .NET runtime automatically generates code to translate calls between managed code and unmanaged code. While transferring calls between these two codes, .NET handles the data type conversion also. This technique of automatically binding with the server data type to the client data type is known as marshalling. Marshaling occurs between managed heap and unmanaged heap. For example, Fig.4 shows a call from the .NET client to a COM component. This sample call passes a .NET string from the client. The RCW converts this .NET data type into the COM compatible data type. In this case COM compatible data type is BSTR. Thus the RCW converts the .NET string into COM compatible BSTR. This BSTR will be passed to the object and the required calls will be made. The results will be returned to back to the RCW. The RCW converts this COM compatible result to .NET native data type.

  1. Interop marshalling
  2. COM marshalling
 blog it

1 comment:

Anonymous said...

Genial fill someone in on and this post helped me alot in my college assignement. Gratefulness you seeking your information.