LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SAFEARRAY [in] and [out]

I tried posting this over in microsoft.public.office.developer.automation &
microsoft.public.vb.ole.automation.
But no one has answered there so I'm going to give this group a shot!

I have a question about VBA code in Excel.
It is talking to an ActiveX component.
Several methods in the component have method signatures that contain [in]
parameters of type SAFEARRAY.
More precisely the idl code reads:
[in] SAFEARRAY (float)* for the input and [out, retval] SAFEARRAY (float)*
for the output.

When I call a method with the [in] SAFEARRAY param, life is good.
However, when I try to call a method with the [out, retval] SAFEARRAY param,
the methods fails with message: Unsupported automation type.
To get the method to work I have to change the idl code to read: [out,
retval] VARIANT *

The question: why is the SAFEARRAY recognized as a legit type for in params
but not out params?

m blackburn



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill a Range with VB SafeArray Rob[_17_] Excel Programming 3 April 9th 04 09:41 AM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"