Results 1 to 4 of 4

Thread: Does C# supports interoperability ?

  1. #1
    Join Date
    Dec 2010
    Posts
    48

    Does C# supports interoperability ?

    I have heard a read a lot about the C# language and learned a lot for this forum. S far as the features of this language are concerned I have understood quite a few features of this language , but still one thing I never understood about this language is the interoperability feature , I am requesting the those people who post in the program related queries to post once again regarding this question , I will be grateful to you.

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: Does C# supports interoperability ?

    Interoperability allows you to conserve and take benefit of existing reserves in unmanaged code. Code that work under the management of the common language runtime (CLR) is known as managed code, and code that works in the outer surface of the CLR is known as unmanaged code. There are a few components such as COM, COM+, C++ and you would have also heard about the ActiveX components, and there is also the Microsoft Win32 API are instances of unmanaged code.

  3. #3
    Join Date
    May 2009
    Posts
    637

    Re: Does C# supports interoperability ?

    You can take and use a COM component from a C# project. The common steps are as follows:
    • Find a COM component to utilize and list it. Make use of regsvr32.exe to register or un–register a COM DLL.
    • Adjoin to the project a indication to the COM component or type library.
    • Create an object of a class that is described in the RCW. This, in turn, generates an instance of the COM object.
    • Use the instance just as you make use of other managed objects. When the object is acclaimed by garbage collection, the instance of the COM object is also set free from memory.

  4. #4
    Join Date
    May 2009
    Posts
    539

    Re: Does C# supports interoperability ?

    When you adjoin the reference, Visual Studio utilize the Tlbimp.exe (Type Library Importer), which consumes a type library as input, to yield a .NET Framework interop assembly. The assembly, also referred a runtime invokable able wrapper (RCW), includes managed classes and interfaces that bind the COM classes and interfaces which are present in the are in the type library. Visual Studio inserts to the project a indication to the created assembly.

Similar Threads

  1. Nexus 7 supports USB-OTG?
    By --MasseySian-- in forum Portable Devices
    Replies: 6
    Last Post: 19-07-2012, 06:36 PM
  2. Is this RIG supports battlefield 3 ?
    By Lynch in forum Hardware Peripherals
    Replies: 6
    Last Post: 04-07-2011, 07:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,908,477.73117 seconds with 17 queries