- COM Callable Wrapper (CCW) works the exact opposite of RCW. i.e. it makes .NET assemblies usable for COM.
- We may se it simpy by putting a check on Register for COMInterOp option in Project Properties -> Build tab.
- To turn on/off COM visibility of individual elements within an assembly use COMVisible attribute and set it to either true or false.
- Any class or members of a class that need to be available for COM need to be public.
- Also, the class thats required for COM visibility should use default constructor with no parameters, and should not be abstract as well.
- After the assembly is built, we may use Type Library Exporter utility (TlbExp.exe) to export it.
- Interface Definition Language (IDL) may be used to generate resource scripts for COM available .NET libraries.
Thursday, August 6, 2009
Chapter 12-Lesson 2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment