回複:回複:Need help, anyone is familiar with COM?

回答: 回複:Need help, anyone is familiar with COM?HappyNow?!2010-12-20 16:17:04

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...



所有跟帖: 

回複:回複:回複:Need help, anyone is familiar with COM? -HappyNow?!- 給 HappyNow?! 發送悄悄話 HappyNow?! 的博客首頁 (1193 bytes) () 12/20/2010 postreply 18:34:47

回複:Need help, anyone is familiar with COM? -0.02$- 給 0.02$ 發送悄悄話 (667 bytes) () 12/20/2010 postreply 19:15:21

good to know...VARIANT -HappyNow?!- 給 HappyNow?! 發送悄悄話 HappyNow?! 的博客首頁 (182 bytes) () 12/20/2010 postreply 19:26:59

回複:good to know...VARIANT -0.02$- 給 0.02$ 發送悄悄話 (271 bytes) () 12/20/2010 postreply 19:43:50

請您先登陸,再發跟帖!