|
-
April 30th, 2001, 06:42 AM
#1
Passing SAFEARRAY from VC++ to VBScript
Hi,
I am writing a component in VC++ for VBScript. I want to write a function that returns an a SAFEARRAY. How can I do that ? What should I write in the IDL file ?
Thanks,
Ofer
-
November 20th, 2001, 12:34 AM
#2
Re: Passing SAFEARRAY from VC++ to VBScript
As far as I am concerned,it is impossible!Because
VBScript can't pass parameter by reference
-
November 20th, 2001, 01:07 AM
#3
Re: Passing SAFEARRAY from VC++ to VBScript
IDL file definition :
GetData([in,out]SAFEARRAY(BSTR) *psa,[out,retval]long *p_retval);
Implementation :
GetData(SAFEARRAY **psa,long *p_retval)
{
.....
}
In VBscript :
Dim strArray(0 to n) as string
Dim retval as Long
retval = comObj.GetData(strArray);
Regards,
The Beret.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|