MCAD - Microsoft Certified Application Developer Question & Answers
You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by other applications, including a standard COM client application.
You must deploy your assembly on the COM application to a client computer. You must ensure that the COM application can instantiate components within the assembly as COM components.
What should you do?
|A) Create a strong name of the assembly by using the Strong Name tool (Sn.exe).||B) Generate a type library for the assembly by using the Type Library Importer (Tlbimp.exe). Register the file on the client computer.|
|C) Generate a registry file for the assembly by using the Assembly Registration tool (Regasm.exe) Register the file on the client computer.||D) Deploy the assembly to the global assembly cache on the client computer. Add a reference to the assembly in the COM client application.|
The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class..
The Strong Name tool helps sign assemblies with strong names.
The Type Library Importer, tlbimp.exe, converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. It would not be useful in this scenario however.
This would not allow the COM application to use the class.
Tags: You use Visual Studio .NET to create an assembly called XYZAssembly that will be used by other applications including a standard COM client application. You must deploy your assembly on the COM ap
- Related Questions