Passing / Retrieving an Array from OCX (COM) object (OpenInsight 32-Bit)
At 01 MAY 2007 08:23:17AM Martin Drenovac wrote:
I'm just programming an interaction to a COM object.
How do I pass in data which the COM object expects as an array.
That is how do I seperate item(1) from (2) - with something as simple as @FM.
When reading an array back from a COM object - what is the seperator that the array will come back with?
Thanks
At 11 MAY 2007 02:29AM Colin Rule wrote:
If you have the DLL declarations you need to:
- Check out the Var_To_Struct OI function
- Check out the OI form executable for DEFINE_STRUCT
- Define your structure based on the DLL
- Do a DECLARE_FCNS, must be on SYSPROG as far as I know
- Build your structure and pass to the function
- Hope, reboot loads of times when you get it wrong
If your using the OCX within an OI form and not using a DLL then sorry for the diversion.
Colin