RE: Passing structs to COM objects

2011-09-13 Thread Fletcher Johnson
PM To: profox@leafe.com Subject: RE: Passing structs to COM objects Fletcher Johnson wrote on 2011-09-06: > Hi all, > > > Long time, no chat.. > > > I am working on a VFP project that requires that I pass a struct. > For my current problem, it wants an array

RE: Passing structs to COM objects

2011-09-06 Thread Tracy Pearson
MB Software Solutions, LLC wrote on 2011-09-06: > On 9/6/2011 5:10 PM, Tracy Pearson wrote: > API's are a fun puzzle (for some). > > > Sounds like an Excedrin moment to me! > Mike, I knew not everyone liked working with API's. Some get complicated with apparent incomplete documentation.

Re: Passing structs to COM objects

2011-09-06 Thread MB Software Solutions, LLC
On 9/6/2011 5:10 PM, Tracy Pearson wrote: > Fletcher, > > You cannot use the VFP Array. > > BINTOC(xValue, "4RS")+BINTOC(yValue, "4RS") should give you the structure. > > The DECLARE of the API will need to have that parameter be STRING. > > If you need the information back, because it's an in/out

Re: Passing structs to COM objects

2011-09-06 Thread Ted Roche
On Tue, Sep 6, 2011 at 3:59 PM, Fletcher Johnson wrote: > Long time, no chat.. > I am working on a VFP project that requires that I pass a struct.  For my > current problem, it wants an array of structs that simply have 2 doubles. Try Christof's Struct class, which can be found at: http://www.f

RE: Passing structs to COM objects

2011-09-06 Thread Tracy Pearson
Fletcher Johnson wrote on 2011-09-06: > Hi all, > > > Long time, no chat.. > > > I am working on a VFP project that requires that I pass a struct. For my > current problem, it wants an array of structs that simply have 2 doubles. > > > I seem to remember there being a fairly straightfo