Thanks HappyNow for your quick response. I Googled some answers and one of them is pretty close to what I'm asking. But there is no details about that. It sounds like you are a COM expert so maybe you can give me a pointer. Below is the answer:
You can use VARIANTs and SAFEARRAYs of
VARIANTs. Your struct, for example, can be arranged as a SAFEARRAY of
VARIANT"s and if you want an array of structs, then use a SAFEARRAY of
VARIANT SAFEARRAY of VARIANTs.
Regarding the SAFEARRAYS of VARIANT SAFEARRAY of VARIANTs, I kind of understand what it means but hope that could be elaborated a little bit. If you could give me a brief example that will be great. Thanks a lot in advance...