Hour 21



If you use a .NET object within a COM-based application, do you need to release any interface pointers you obtain or does the common language runtime still perform garbage collection?


Because your COM object is not running within the confines of the common language runtime, you must release your interface pointers.


What happens when a parameter to a method within a .NET object is a custom data type that you created and you wish to build a type library using the assembly that contains this custom data type?


You will have to implement a custom marshaler.


If TlbImp.exe creates an assembly, then what does the tool TlbExp.exe do and how is it different from the RegAsm.exe tool used during this hour?


TlbExp.exe creates a type library from an assembly. RegAsm.exe does the same, but it also registers that type library, whereas TlbExp.exe does not.


Sams Teach Yourself Visual C++. NET in 24 Hours
Sams Teach Yourself Visual C++.NET in 24 Hours
ISBN: 0672323230
EAN: 2147483647
Year: 2002
Pages: 237

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net