Showing posts with label COM. Show all posts
Showing posts with label COM. Show all posts

COM Interview Question

What is IUnknown?
What methods are provided by IUnknown?
What should QueryInterface functions do if requested object was not found?
How can would you create an instance of the object in COM?
What happens when client calls CoCreateInstance?
What the limitations of CoCreateInstance?
What is aggregation?
What is a moniker ?
What’s the difference between COM and DCOM?
What is ROT and GIT ?
What is VARIANT?
What is __declspec(novtable)? Why would you need this?
What is In-proc?
What is OLE?Give examples of OLE usage.
Is .doc document a compound document?

COM/DCOM Interview Question

1. What’s the difference between COM and DCOM?
2 What is a dual interface?
3. Can you have two dual interfaces in one class?
4. What is marshalling by value?
5. What is a multi-threaded apartment (MTA)? Single-threaded apartment (STA)?
6. Let’s assume we have object B and aggregated object C (in-proc server), created by B. Can you access any interface of B from C? What’s the difference between aggregated and contained objects?
7. What is ROT ? GIT ? Count pros and cons of both.
8. If you have an object with two interfaces, can you custom marshal one of them?
9. Is there a way to register in-proc server without regsvr32.exe?
10. What is VARIANT? Why and where would you use it?