
Passing arrays back and forth from COM
If you need to pass arrays to a VC++ COM server from VB, use the SAFEARRAY
type. If you want to pass strings, use the BSTR type.
--
Michael "The" Gnter, MCP (VC++, VB)
Software Engineer
Infinity Software Development, Inc.
Phone: (850) 383-1011 . Fax: (850) 383-1015
Quote:
> I'm having a problem passing arrays back and forth from my VC++ based COM
> server (it's out of process if that makes any difference). I can receive
> single number values fine, it's just the arrays that give me difficulty.
> I'm also having problems passing strings back and forth (I figured they
must
> be related). I can sort of get the string example working, but only if I
> use variants in COM. Can I not pass a wchar_t* data type to and receive
one
> from a COM interfance? What about double arrays? I have not been able to
> get those to work either. Please help.
> Thanks,
> Charles