Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   How to get safearray from a Component (http://www.velocityreviews.com/forums/t799892-how-to-get-safearray-from-a-component.html)

Patrice FRITSCH 10-26-2005 09:51 AM

How to get safearray from a Component
 
Does anybody know how to retrieve a safearray from a Component ?

In my asp code, I create an instance of the object, and I try to retrieve an
array of 3 strings.

Set myObject = CreateObject("A.B")
Dim arrSoft(3)

iRet = myObject.GetSoftVersions(arrSoft...)

I tried
iRet = myObject.GetSoftVersions(arrSoft)
iRet = myObject.GetSoftVersions(arrSoft())
iRet = myObject.GetSoftVersions(arrSoft(0))
and got each time an error message.

The méthod in the object is defined like this :
STDMETHODIMP XXXXXXX::GetSoftVersions(SAFEARRAY **versionTable, unsigned int
*RetValue)
and should return the array of 3 strings containing the software versions.

Can anybody help ???
Thank in adavance.
Patrice




All times are GMT. The time now is 04:04 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57