How to Use structs in COM interfaces when Automation
compatibility is not an issue?
Answer / krishna akkulu
Structs, also known as User Defined Types (UDTs), can be
used in Automation- compatible interfaces
An Automation- compatible struct may contain only primitive
Automation types as its members.
Nesting structs is not allowed, but VARIANT is allowed thus
enabling nested structs (you can store a struct in a
In order for a struct to be usable for Automation-
compatible interfaces, the struct must be described in a
type library and it must be declared with its own GUID:
[helpstring("A long value")]
// Later in the IDL file
[uuid(...), version(...), helpstring(...)]
For more info see : http://vcfaq.mvps.org/com/4.htm
|Is This Answer Correct ?||0 Yes||3 No|
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?
Differentiate normal DLL to COM DLL
what is mean by scintific,commercial and business applications? How they differ? Please answer me. Advance thanks.
how you call a dll as a COM dll.
Futures of COM
How can would you create an instance of the object in COM
C is aggregated by B, which in turn aggregated by A. Our client requested C. What will happen?
How does a DCOM component know where to instantiate itself?
Explain JIT activation?
Do COM keep track of all the object references(Accounting)?
Which tool is used to configure the port range and protocols for DCOM communications?
what is oops