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
Printable View
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
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.