>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).