Click to See Complete Forum and Search --> : Is API faster than VB intrinsic controls?
TType85
Jul 18th, 2001, 07:00 PM
Stupid question.
Are the API calls faster/better than the ones in vb?
Like the GetCursorPos vs MouseMove
or ptInRect vs a if then loop?
or SetTimer vs a VB timer?
Thanks
Nucleus
Jul 19th, 2001, 12:17 AM
Always look on a case by case basis. Generally you use api when you can't get the functionality out of VB.
Sometimes you need the speed of API functions over built in VB functions. For example iterating over all files on your hardrive. It would take forever with dir, but using findfirstfile, findnextfile win32api functions makes it realistic.
SetTimer api is good if you need a formless timer.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.