Article View: microsoft.public.vc.activextemplatelib
Article #5Re: RPC_S_INTERNAL_ERROR (0x800706e6) when call COM method with SAFEARRAY arg
From: Stefan Cuypers
Date: Mon, 05 Oct 1998 00:00
Date: Mon, 05 Oct 1998 00:00
31 lines
2288 bytes
2288 bytes
David, If you like the interface to be usable from VB5, its better to use a dual interface instead of a custom interface. This will imply the oleautomation attribute and should solve your problem. Only if you really need custom variable types you should consider the custom interface. Regards, Stefan Cuypers David Morgenlender wrote in message <3622f052.98842447@enews.newsguy.com>... >Girish, > >>I dont think, SAFEARRAY can be used in custom interfaces. I Think it >>needs the typelibrary marshalling to help it out. Why are you using >>SAFEARRAY anyway? You can use size_is, length_is and other wonderful >>attributes in IDL to pass arrays. >>Anyway, SAFEARRAY might work if you put that [oleautomation] attribute >>on that interface. > >This server must be usable from both C++ & VB5 (or later). Does VB support >those other methods of passing arrays? I was under the impression that VB only >supported SAFEARRAYs ... but it wouldn't be the first time I'm wrong <g>! > >======================================================= >Dave Morgenlender >e-mail: dmorgen@alum.mit.edu >======================================================= >
Technical Details
Message-ID:
<uXyGBQC89GA.75@uppssnewspub04.moswest.msn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35f7af87.139502483@enews.newsguy.com> <35fca36a.74862657@enews.newsguy.com> <35fd93e5.9529171@enews.newsguy.com> <360a2925.226239187@enews.newsguy.com> <361f01bd.37755547@enews.newsguy.com> <36101F5C.82A6DF6B@mvps.org> <3622f052.98842447@enews.newsguy.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9701,1d0d9a944f8acbf8 X-Google-Attributes: gidf9701,public X-Google-Thread: fc3fb,81ddca2bbfb6aa72 X-Google-Attributes: gidfc3fb,public X-Google-Thread: 108cda,81ddca2bbfb6aa72 X-Google-Attributes: gid108cda,public X-Google-Thread: fe15c,81ddca2bbfb6aa72 X-Google-Attributes: gidfe15c,public From: "Stefan Cuypers" <cuypers@glo.be> Subject: Re: RPC_S_INTERNAL_ERROR (0x800706e6) when call COM method with SAFEARRAY arg Date: 1998/10/05 Message-ID: <uXyGBQC89GA.75@uppssnewspub04.moswest.msn.net> X-Deja-AN: 397819889 References: <35f7af87.139502483@enews.newsguy.com> <35fca36a.74862657@enews.newsguy.com> <35fd93e5.9529171@enews.newsguy.com> <360a2925.226239187@enews.newsguy.com> <361f01bd.37755547@enews.newsguy.com> <36101F5C.82A6DF6B@mvps.org> <3622f052.98842447@enews.newsguy.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Computers Cuypers bvba Newsgroups: microsoft.public.vc.activextemplatelib,comp.os.ms-windows.programmer.ole,microsoft.public.win32.programmer.ole,borland.public.cppbuilder.activex