Article View: microsoft.public.win32.programmer.ole
Article #12Re: Dynamic 2-dimensional array as parameter for COM method?
From: Alexander Nickolov
Date: Wed, 27 Jan 1999 00:00
Date: Wed, 27 Jan 1999 00:00
34 lines
2014 bytes
2014 bytes
I also would recommend safe arrays. VB is incapable of handling C-style arrays. As for the C++ side - you have only to write two convertor methods between your array class and safe array... -- =============================== Alexander Nickolov STL Panasonic email: agnickolov@geocities.com =============================== David Morgenlender wrote in message <36ba2e2a.141530911@enews.newsguy.com>... >Jyrki, > >>In IDL specify just VARIANT. >> >>Use VARIANT of type VT_ARRAY | VT_xxx. Make parray of the >>VARIANT to point to a SAFEARRAY. SAFEARRAY may contain >>more than one dimension. > >Thanks for the suggestion. I was hoping to avoid SAFEARRAY, because it's a pain >to use in C++. Also, I vaguely recall running into some kind of compatibility >problem when I tried using it in the past, but I don't recall the details. >Maybe it's incompatible with an IUnknown interface. But I might play around >with this, if I can't come up with something easier on the C++ side. > >======================================================= >Dave Morgenlender >e-mail: dmorgen@alum.mit.edu >=======================================================
Technical Details
Message-ID:
<udcMkCiS#GA.213@uppssnewspub04.moswest.msn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36b2516d.85013812@enews.newsguy.com> <36AF44FA.3757@fidri.mail.abb.com> <36ba2e2a.141530911@enews.newsguy.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9701,d933c915558e7daf X-Google-Attributes: gidf9701,public X-Google-Thread: 108cda,d933c915558e7daf X-Google-Attributes: gid108cda,public X-Google-Thread: fe15c,d933c915558e7daf X-Google-Attributes: gidfe15c,public From: "Alexander Nickolov" <agnickolov@geocities.com> Subject: Re: Dynamic 2-dimensional array as parameter for COM method? Date: 1999/01/27 Message-ID: <udcMkCiS#GA.213@uppssnewspub04.moswest.msn.net> X-Deja-AN: 437621404 References: <36b2516d.85013812@enews.newsguy.com> <36AF44FA.3757@fidri.mail.abb.com> <36ba2e2a.141530911@enews.newsguy.com> X-Mimeole: Produced By Microsoft MimeOLE V4.72.2120.0 Organization: STL Panasonic Newsgroups: microsoft.public.win32.programmer.ole,comp.os.ms-windows.programmer.ole,borland.public.cppbuilder.activex