🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.win32.programmer.ole
Article #5

Re: Dynamic 2-dimensional array as parameter for COM method?

#5
From: David Morgenlender
Date: Thu, 28 Jan 1999 00:00
22 lines
1855 bytes
Jyrki Erjanti <Jyrki.Erjanti@fidri.mail.abb.com> wrote:

>You can use SAFEARRAY directly, but doing so may limit the
>use of your component. I have heard that there are many
>language implementations, which, although they claim to be
>"automation compatible", do not allow SAFEARRAYs to be
>used directly.
>
>Even VB 5.0 interpretes the "compatibility" so that it
>does not accept SAFEARRAY as [in] parameter but requires
>SAFEARRAY*.

I dug the problem I was having with SAFEARRAY (in addition to its being very
cumbersome to use in C++):  C++ Builder has a bug where "SAFEARRAY*" in the IDL
file is treated as "SAFEARRAY*" in the generated C++ code, when the type library
is imported;  it's supposed to be "SAFEARRAY**".  It can be worked around ...
but it's ugly.

=======================================================
Dave Morgenlender
e-mail: dmorgen@alum.mit.edu
=======================================================
Technical Details
Message-ID: <36b96d2a.80125732@enews.newsguy.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36b2516d.85013812@enews.newsguy.com> <36AF44FA.3757@fidri.mail.abb.com> <36b3682b.13300621@enews.newsguy.com> <36B09C3C.63F4@fidri.mail.abb.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: dmorgen@alum.mit.edu (David Morgenlender)
Subject: Re: Dynamic 2-dimensional array as parameter for COM method?
Date: 1999/01/28
Message-ID: <36b96d2a.80125732@enews.newsguy.com>
X-Deja-AN: 437950297
Content-Transfer-Encoding: 7bit
References: <36b2516d.85013812@enews.newsguy.com> <36AF44FA.3757@fidri.mail.abb.com> <36b3682b.13300621@enews.newsguy.com> <36B09C3C.63F4@fidri.mail.abb.com>
Content-Type: text/plain; charset=us-ascii
Organization: http://extra.newsguy.com
Mime-Version: 1.0
Newsgroups: microsoft.public.win32.programmer.ole,comp.os.ms-windows.programmer.ole,borland.public.cppbuilder.activex