Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Far Pointer to a Procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00590195
Message ID:
00590272
Vues:
22
>That's exactly what I was afraid of... Thanks for the quick response Ed.
>
>It sounds like you've had to do this yourself.

Yes, a number of times. It's not that difficult to do; you can write it as an ActiveX control in VB6, getting the callback address through the AddressOf() operation. Most callbacks will pass one or more parameters to the callback to process, which are most easily propagated to VFP through properties, and then have the control raise an event that a VFP form responds to. Dan Appleman's book on the API for VB programmers discusses how to create callbacks using VB6 pretty well; if you have the details on the data being passed back, it's pretty much cookie cutter coding to publish the callback, suck down the parameters, post them to public properties and raise an event. Things get a little more complex when your callback must return explicitly with new data to privide the DLL making the callback with some piece of data it's requested.

I think that there's some template code for an FLL floating around in the Files Section that might be of interest, and there might be code for a DLL doing much the same thing on Dave Frankenbach's website.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform