Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IT Factory Incident
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00415049
Message ID:
00417598
Views:
18
>>Could you estimate what percentage of time this is a concern in higher-level language like VB or VFP? Or, rather - could you give an example where it's pertenant to be aware of an ID/handle and their respective distictions and estimate how often that example is of concern?
>>
>
>InVB, lots - dealing with printers, the VB developer references the device via an hDC - a handle to a device context. Want to get a control to do something? Send it a message using SendMessage() or PostMessage(); you just need the hWnd of the control. Want to check the completion status of a program you fired up to run in the background? If you have an hProcess (process handle) you can call GetExitCodeProcess(), or given the ProcessID, you can get a handle granting you all sorts of capabilities using OpenProcess().
>
>I'd guess that my code contains lots of calls to the API layer that many others don't use. I can certainly write an app without resorting to talking to the API, but I can write a better one if I just ask Windows to do the tough stuff for me. You don't have to buy a lawnmower to keep your grass clipped; a herd of cattle will handle the task quite well.

What kind of future does API have in the internet & ".NET" world - increased or decreased usage? Looks like it may become just so much proprietary barbed wire holding in yesterdays cattle - .NET needs to let the buffalo roam, don't you think?

Steven-
Previous
Reply
Map
View

Click here to load this message in the networking platform