Re: RE : RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Marcos Douglas
On Fri, Jun 10, 2011 at 10:26 AM, Ludo Brands wrote: > > > > No. This method belongs a COM object. I don't have the > > definition, just know that is a array of byte. > > Use OleView to get the IDL. It is part of MS platform SDK or can be > downloaded separately from MS. Talking to COM objects wit

RE : RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Ludo Brands
> No. This method belongs a COM object. I don't have the > definition, just know that is a array of byte. Use OleView to get the IDL. It is part of MS platform SDK or can be downloaded separately from MS. Talking to COM objects without having the IDL is, well, "adventuruous". Ludo _

Re: RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-10 Thread Marcos Douglas
On Thu, Jun 9, 2011 at 2:20 PM, Ludo Brands wrote: > > If the Assert(VarType(V) = varByte or varArray); is not raising an error > then you are not getting a Safearray. VarArrayLock is for safearrays. If you > are getting an array of byte, you should be able to access the bytes as > V[i]. Yes, an

RE : [fpc-pascal] Re: Array of byte from a COM object

2011-06-09 Thread Ludo Brands
"array of byte"? Ludo > -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org > [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part > de Marcos Douglas > Envoyé : jeudi 9 juin 2011 17:21 > À : FPC-Pascal users discussions > Objet : [

[fpc-pascal] Re: Array of byte from a COM object

2011-06-09 Thread Marcos Douglas
On Thu, Jun 9, 2011 at 11:26 AM, Marcos Douglas wrote: > > Hi, > How I can a return "array of byte" from a COM object and put in a Stream? > I use a OleVariant variable to get the return. But I can not convert > in a string (the return is a XML). I did using this function: procedure VariantToStr