Re: Return a pointer from COM's method
- From: "acerblue" <acerblue@xxxxxxxxxxxx>
- Date: Fri, 27 May 2005 12:49:43 +0800
Thanks, but beside array of USHORT, I also need some method to return a
pointer to a structure or class. Please advise thanks.
Best Regards,
Acer Blue
"thatsalok" <thatsalok@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uYW53LnYFHA.584@xxxxxxxxxxxxxxxxxxxxxxx
> Why don't you try SAFEARRAY for returning array of Short
>
> --
> cheers,
> Alok Gupta
> Visit me at http://alok.bizhat.com
> "msnews.microsoft.com" <acerblue@xxxxxxxxxxxx> wrote in message
> news:efCpcamYFHA.3840@xxxxxxxxxxxxxxxxxxxxxxx
> > Hi,
> > I'm new to COM programming. Currently I'm creating a COM dll and calling
a
> > lib that parsing and storing information. I'd like to create a method to
> > return the pointer for a particular array of data, is it possible to do
> that
> > in COM interface ?
> > eg:-
> > STDMETHOD(GetData)(USHORT** pData);
> >
> > When I try to call this method from C#, the compiler gives me interface
> > pointer casting error.
> >
> > Please advise. Thanks
> >
> > AcerBlue
> >
> >
>
>
.
- Follow-Ups:
- Re: Return a pointer from COM's method
- From: Brian Muth
- Re: Return a pointer from COM's method
- From: thatsalok
- Re: Return a pointer from COM's method
- References:
- Return a pointer from COM's method
- From: msnews.microsoft.com
- Re: Return a pointer from COM's method
- From: thatsalok
- Return a pointer from COM's method
- Prev by Date: Re: Return a pointer from COM's method
- Next by Date: Re: settimer and realtime issue
- Previous by thread: Re: Return a pointer from COM's method
- Next by thread: Re: Return a pointer from COM's method
- Index(es):
Relevant Pages
|