|
-
Jul 18th, 2001, 07:00 PM
#1
Thread Starter
Lively Member
Is API faster than VB intrinsic controls?
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
-
Jul 19th, 2001, 12:17 AM
#2
Registered User
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|