[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-atl
Subject:    Re: Visual Basic accepting a SAFEARRAY via retval
From:       "John H. Peeler" <jpeeler () CFTNET ! COM>
Date:       1998-02-27 22:20:09
[Download RAW message or body]


Does this not work?

Dim ary() As String
ary = resolve_name(name_to_resolve)

John H. Peeler
Best Software, Inc.

-----Original Message-----
From: Kallattil Vijayan <KallattilVijayan@JDCORP.DEERE.COM>
To: ATL@LISTSERV.MSN.COM <ATL@LISTSERV.MSN.COM>
Date: Friday, February 27, 1998 3:31 PM
Subject: Re: Visual Basic accepting a SAFEARRAY via retval


>We faced the same problem. We tried a piece of code like this.
>
>Dim var as Variant
>var = resolve_name(name_to_resolve)
>
>If we use Set var = , then it gives a Type Mismatch error.
>
>-Vijayan
>
>        -----Original Message-----
>        From:   Nielsen John F. [SMTP:John.Nielsen@BWC.STATE.OH.US]
>        Sent:   Friday, February 27, 1998 7:38 AM
>        To:     ATL@LISTSERV.MSN.COM
>        Subject:        Visual Basic accepting a SAFEARRAY via retval
>
>        I have a piece of IDL that looks like this:
>
>        [id(2), helpstring("method resolve_name")]
>        HRESULT resolve_name([in]BSTR to_resolve,[out, retval]
>SAFEARRAY(BSTR)*
>        resolved_list);
>
>        With VB I can extract an individual element from the array of
>strings
>        returned, but I cannot
>        set an array to equal the array returned. Is there any way to do
>this?
>
>        john
>
>        ----------------------------------------------------------------
>        Users Guide
>http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
>        contains important info including how to unsubscribe.  Save
>time, search
>        the archives at
>http://microsoft.ease.lsoft.com/archives/index.html
>
>----------------------------------------------------------------
>Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
>contains important info including how to unsubscribe.  Save time, search
>the archives at http://microsoft.ease.lsoft.com/archives/index.html
>

----------------------------------------------------------------
Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://microsoft.ease.lsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic