Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get physical disk of a logical drive letter
Message
De
04/03/2002 18:54:04
 
 
À
04/03/2002 12:54:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00627438
Message ID:
00628159
Vues:
43
>Mike this is one of the tools that is already available in Delphi-I wish it was in VFP also. Although I think the Win32 API-way is acceptable. Regarding tools available in competitive products: Just wondering if you have seen some of the other built-in tools in Delphi 6, especially the drop-on controls for consuming web services? It would be GREAT if VFP's were just as simple! In Delphi you just drop the control on the form and fill in the properties. Has anything like that been added already to the Toledo wish list or is it already in the works?
>


Tracy, DeviceIoControl() is not an ActiveX control; it's a more than moderately complex API call that takes a large number of parameters, performs a tremendous number of functions, and deals with a horrendous number of passed and returned structures depending on what you ask it to do. I've got plenty of code to make it work in VC++; if I need it, I'll write a tiny little piece of ATL and build myself a control to access the functionality of interest. You could do it with a bit more trouble in Delphi or VB6 or later, but they have real strong datatyping and structures and pointers and unions, oh my!

If someone really wants an implementation, that'd be the direction I'd go, but I've never believed that VFP ius the right tool for all things. In spite of belief to the contrary here, there's a place and time for C++...

>Tracy
>>>DeviceIoControl()...not one I'm planning to implement in VFP without having a loaded handgun stuck in my ear...
>>
>>Good call on the Win32 API function. But you're right, that's a mighty large amount of hoops to jump through. Were it something a large amount of people might find useful, I'd be tempted to code it just out of spite. I don't here a whole lot of clamoring for it, though (thankfully).
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