Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question concerning ActiveX functions that modify argume
Message
De
11/02/1999 17:57:25
 
 
À
11/02/1999 17:45:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00186821
Message ID:
00186830
Vues:
16
>I am trying to use an ActiveX control which, exposes a function that modifies the arguments sent to it. The arguments sent to the function are of type VARIANT not references to VARIANT. I attempted to send references but FoxPro returned an OLE error of type mismatch. Consequently, the ActiveX control's function can't modify the arguments passed to it (i.e. the parameters are being passed by value not reference). How does one pass parameters to an ActiveX control and have those parameters return with the modified values?
>

The right (IOW, MS-approved) way to do this is to use exposed properties, and let the control act on the properties rather than arguments to the method. This is to avoid exactly the situation you've encountered - different languages represent data in different ways, and much of the value of the OLE interface is to provide a common mechanism for data conversion. AFAIK, there's no simple way to provide this functionality without creating a wrapper on the the control in another language that handles the conversion tasks and understands both VFP's and the controls native data representations.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform