Thursday, August 6, 2009

Chapter 13-Lesson 1

  • Runtime Callable Wrapper (RCW) is the .NET Component that handles all complex issues related to referencing and communicating COM components.
  • Type Library Importer Tool (TlbImp.exe) may be used besides Visual Studio to add reference to a COM component.
  • Regsvr32 maybe used to register any DLLs for use as COM components.
  • null value cannot be passed during a Call By Reference.
  • TlbImp generates a .NET assembly from a COM assembly.
  • Intermediate Language Disassembler (Ildasm.exe) allows to view a visual representation of the Intermediate Language (IL).
  • Use Assembly Registration Tool (Regasm.exe) to Add/Remove .NET assemblies from system registration database.
  • In .NET versions prior to 2.0, System.Exception would handles only Common Language Specification (CLS)-compliant exception. Because COM errors won’t be CLS compliant, they won’t be caught.
  • However, in .NET 2.0 there exists RuntimeWrappedException class in System.Runtime.CompilerServices namespace which inherits from System.Exception class. Therefore, now we may catch all Exceptions (CLS-based and Non-CLS-based) through System.Exception class.
  • See Limitations of COM InterOp on page 794.

No comments:

Post a Comment