Re: Fire SAFEARRAY(BYTE) to outer COM object crashes
From: Brian Muth (bmuth_at_mvps.org)
Date: 11/09/04
- Next message: Alexander Nickolov: "Re: Question for ATL Experts ... (CWindowImpl)"
- Previous message: Igor Tandetnik: "Re: ATL ActiveX Control, Missing Project Header File"
- In reply to: max: "Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Next in thread: max: "Re: Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Reply: max: "Re: Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 08:42:29 -0800
Your subject title suggests you are using SAFEARRAY(BYTE) in your IDL. That
does _not_ represent an array of BSTRings.
Since the client is a scripting language, you must work with VARIANTs. You
should be returning a SAFEARRAY of VARIANT's, where each VARIANT element is
a BSTR.
Show us your IDL.
Brian
"max" <max_mont@yahoo.fr> wrote in message
news:3daa8bf7.0411090624.523f3bf5@posting.google.com...
> Hi,
>
> I'm working on an activex in c++ which is used by HTML code.
> I'd like to fire an event passing an array of BSTR.
> So I try your code which seems to work.
> But I can't catch the event in IE.
> In fact, you fire an event with Invoke method passing 0x2 as
> dispIdMember. But my event has got 0x5 as ID. If I change
> dispIdMember, the program crashes.
> So where can I specify event ID in the sending method ???
> Many thanks in advance for your help.
- Next message: Alexander Nickolov: "Re: Question for ATL Experts ... (CWindowImpl)"
- Previous message: Igor Tandetnik: "Re: ATL ActiveX Control, Missing Project Header File"
- In reply to: max: "Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Next in thread: max: "Re: Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Reply: max: "Re: Fire SAFEARRAY(BYTE) to outer COM object crashes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|