Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using VB DLL's from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00410329
Message ID:
00410332
Vues:
16
>There was a good article in FPA called "Using The Studio", which showed how to call a VB program from within VFP (Vincent, are you out there?). It used some date functions as an example, and went through the process in both programs.
>
>This was just what I needed to know (well, 6 months too late, but anyway...) I'd really like to impliment this method to grab some onject information from AutoCAD which I could not get directly from VFP due to some screwy data types that VFP doesn't seem to handle well.
>
>The article showed how to return a single value from the DLL, but in my case, I'll need to recurse through a bunch of objects in VB and return each one to my VFP program to stuff into a table. I don't understand how I would do this using the DLL approach. I presume that each time I call the dll, it will always return properties the first object - I don't know how I would return the full range of objects. Is there some way to impliment a NEXT UNTIL or something, or some other way of returning properties of a series of objects?
>

Create a collection in the VB .DLL to hold the data, and populate it with the data that you want to return; rather than returning the value as a single value from the method, simply spin through the collection after calling the method that populates it.
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