I'm having some troubles in passing an array of structures in the definition of COM interface. For example, I'm trying to define a series of variables Ids in one read function, say Read() and I'm expecting the reply function (using the same function Read()) will bring back an array of values that corresponds to the previously defined variable Ids:
[helpstring("method ReadVariables")] HRESULT ReadVariables([in] VARIANT varIds, [out] _valStruct* retVals);
For _valStruct, the definition is: struct _valStruct { int varId; double varVal; int timeStamp; double funcId; ....
}
I'm not familiar with COM and I just know some basic types, such as int, double, etc... I sincerely some experts here will give me some detailed example code or related information. Your help is greatly appreciated... Thanks!!!