🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5306

Re: Help with SAFEARRAY

#5306
From: LarryJ
Date: Fri, 16 Sep 2005 05:07
36 lines
2038 bytes
OK, below is the AllocateArray functions they are using. Below that is a 
description of the GetSymbols( ) function. Your advice is great appreciated.


SAFEARRAY *_cTC2000::AllocateArray( const VARTYPE _type )
{
 SAFEARRAYBOUND aDim[1];
    ::memset( aDim, 0, sizeof( aDim ) );
 aDim[0].lLbound = 1;
 aDim[0].cElements = 1;
    SAFEARRAY *pArray = SafeArrayCreate( _type, 1, aDim );
 ASSERT( pArray );
 return pArray;
}


GetSymbols() expects expects two SAFEARRAY one array is a string identified 
as BSTR named "Symbols" and the second SAFEARRAY is a long named 
"WordenNumbers"

void GetSymbols( SAFEARRAY(BSTR)* Symbols,  SAFEARRAY(long)* WordenNumbers);



"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:432a2b61$1@newsgroups.borland.com...
>
> "LarryJ" <LarryJ33@ev1.net> wrote in message
> news:432a15a0@newsgroups.borland.com...
>
>
> You did not show what AllocateArray() is doing, nor did you specify what
> GetSymbols() expects as input,
>
> 
Technical Details
Message-ID: <432a52cc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4329d38a@newsgroups.borland.com> <4329da90$1@newsgroups.borland.com> <432a15a0@newsgroups.borland.com> <432a2b61$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d0eb3921b71e7751
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "LarryJ" <LarryJ33@ev1.net>
From: "LarryJ" <LarryJ33@ev1.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4329d38a@newsgroups.borland.com> <4329da90$1@newsgroups.borland.com> <432a15a0@newsgroups.borland.com> <432a2b61$1@newsgroups.borland.com>
Subject: Re: Help with SAFEARRAY
Date: Fri, 16 Sep 2005 00:07:42 -0500
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 216.40.234.58
Message-ID: <432a52cc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126847180 216.40.234.58 (15 Sep 2005 22:06:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail