🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#10
From: David Morgenlender
Date: Wed, 27 Jan 1999 00:00
17 lines
1462 bytes
Girish,

>You can use size_is and pointer magic to represent what you want. But, I am
>not sure about VB being happy about that..:-(
>Something like
>HRESULT Foo([out]int * size1, [out]int* size2,[out,size_is(,*size1,*size2)]
>int *** arrayOfInts);
>might work.. Here you are representing pointer to
>arrayOfInts[*size1][*size2].. (I think ??)

Thanks.  I'll give it a try, including with VB.  Now why didn't I think of that
syntax <g>!

=======================================================
Dave Morgenlender
e-mail: dmorgen@alum.mit.edu
=======================================================
Technical Details
Message-ID: <36b92ded.141470338@enews.newsguy.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36b2516d.85013812@enews.newsguy.com> <euZJZ7eS#GA.161@uppssnewspub04.moswest.msn.net>

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/27
Message-ID: <36b92ded.141470338@enews.newsguy.com>
X-Deja-AN: 437575605
Content-Transfer-Encoding: 7bit
References: <36b2516d.85013812@enews.newsguy.com> <euZJZ7eS#GA.161@uppssnewspub04.moswest.msn.net>
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