|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Steve Johnson (sjohnson
3TSYSTEMS.COM)Date: Mon Sep 10 2001 - 08:32:10 CDT
What is the IDL and prototype for the C++ method?
Steve Johnson
3t Systems
mailto://sjohnson
3tsystems.com
(303) 858-8800 x265
> I am using SafeArray in COM Server .This SafeArray consists of an array of
> bstrs.I am passing normal string array(ByRef) in my function & it gives
> unhandled Exception when casting the normal array to safearray
>
> in VB the Client is something like
> Dim x(2)
> x(0) = "kkt1"
> x(1) = "rst1"
> Dim y(2)
> y(0) = "rst2"
> y(1) = "kkt2"
> Set rs = rp.getQuery("c:\aa.xml", "GetItemLocations", x, y)
>
>
>
> SAFEARRAY *ppk=(SAFEARRAY *)pparr; (x to be cast here)
> BSTR *bstrar;
> SafeArrayAccessData(ppk,reinterpret_cast<void**>(&bstrar));
> long j=ppk->rgsabound->cElements;
> _bstr_t bstemp(bstrar[0]);
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]