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|
When you call CoInitialize(NULL) function how it works internally.
can a COM interface be implemented by more than one COM class in the same COM component?
How can would you create an instance of the object in COM
Futures of COM
hi,I have applied for NIC test plz if any one have test paper pattrn plz send me on "firstname.lastname@example.org"
Explain JIT activation?
what is far pointer and what are the use of far poiter in com/dcom ?????
Do COM keep track of all the object references(Accounting)?
How do you make a NET component talk to a COM component?
What is the difference, if any, between OLE and COM?
Which namespace do the classes, allowing you to support COM functionality, are located?
Which tool is used to configure the port range and protocols for DCOM communications?