Question from the MicrosoftPress exam (70-536)

T

Tony Johansson

Hi!

If I have this question. Which methods allow COM components to be used in
..NET applications ?
(Choose all that apply)

A. Add a reference to the component through Microsoft Visual Studio 2005.
B. Use the Type Library Import tool (TlbImport.exe)
C. use the Regsvr32 tool.
D. Ensure that the application is registerer, using the RegSvr tool if
necessary. Then either add a reference to it from the COM tab of the Add
Reference dialog box or use TblImp.exe.

The correct answers according to the book is A,B and D.
I can agree with the book about answers A and D but I mean that if answer B
should be correct the dll must have been registered before use can use
TblImp.exe.?

So I might not have choosen alternative B if it would have been a question
on an real exam.

//Tony

//Tony
 
H

Harlan Messinger

Tony said:
Hi!

If I have this question. Which methods allow COM components to be used in
.NET applications ?
(Choose all that apply)

A. Add a reference to the component through Microsoft Visual Studio 2005.
B. Use the Type Library Import tool (TlbImport.exe)
C. use the Regsvr32 tool.
D. Ensure that the application is registerer, using the RegSvr tool if
necessary. Then either add a reference to it from the COM tab of the Add
Reference dialog box or use TblImp.exe.

The correct answers according to the book is A,B and D.
I can agree with the book about answers A and D but I mean that if answer B
should be correct the dll must have been registered before use can use
TblImp.exe.?

So I might not have choosen alternative B if it would have been a question
on an real exam.

A COM component has to be registered before it can be used AT ALL.
Mentioning its registration in a question about what you have to do to
use it *in a .NET application* is like mentioning that the DLL has to be
on your computer, or that your computer has to be turned on.

Repeat to yourself what Pete has already said to you about the way the
test questions in your book are written. This is really a stupidly
constructed question. Who writes a test question where A, B, and D
*together* are the correct answer, where D itself is (A and B and a
little something extra)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top