Hello Peter,
1. >> Yes I already did this. The MatchedItem struct has the same name as this DispInterface and describes the structure of this DispInterface.
1.1 Yes, in this case, if MatchedItem is actually a COM class that implements dispinterface, then the sample code you provided showing MatchedItem in use would be correct.
2. Just to be sure, the ArrayElement class defined in my test code is represented as follows in my IDL :
[ uuid(1064CDA0-7AAB-4F9D-8094-DD638F944DB3) ]
dispinterface IArrayElement
{
properties:
[id(1), helpstring("property IntProperty01")] LONG IntProperty01;
[id(2), helpstring("property IntProperty02")] LONG IntProperty02;
[id(3), helpstring("property IntProperty02")] LONG IntProperty03;
methods:
};
// Class information for ArrayElement
[ uuid(599BF2F0-955A-40CF-83C1-B8A55F4A675F) ]
coclass ArrayElement
{
[default] dispinterface IArrayElement;
};
- Bio.
Please visit my blog : http://ift.tt/1r6KxsJ
No comments:
Post a Comment