Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a VFP object to an automation object
Message
De
10/07/1998 08:21:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Passing a VFP object to an automation object
Divers
Thread ID:
00116085
Message ID:
00116085
Vues:
87
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform