How to get safearray from a Component

P

Patrice FRITSCH

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top