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
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]. Do you have the interface definition for the method returning the "arr