Results 1 to 2 of 2

Thread: Is API faster than VB intrinsic controls?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Location
    Garden Grove, CA
    Posts
    72

    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
    Chris Wilson

  2. #2
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    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
  •  



Click Here to Expand Forum to Full Width