General information
Title:
Passing a VFP object to an automation object
Hi all,
I think this is impossible, but here is my question:
It is possible to pass a VFP object as a parameter to an automation
method?
I wanna develop an DLL to act as an in-process automation server for a
VFP application. I'm using the OCXAPI.LIB and PRO_EXT.H from the library
construction kit and the automation server can take advantage of all
the VFP API functions, so it makes sense receiving a VFP object.
I tried with a OLE VARIANT type. The VARIANT structure is filled by VFP
like it was a LPDISPATCH (an OLE interface). But the actual value is
useless. I don't think is a valid OLE interface. My hope was that VFP
will convert the data to something like a pointer to a Value or Locator.
Is not the case.
I can only think at passing a string (the name of a variable referencing
the object) and the use the _NameTableIndex, _FindVar and _Load
functions...
Anyone has a better ideea?
Regards,
Remus
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only