Results 1 to 3 of 3

Thread: [vb6] - why i can't use the CreateTimerQueue() api function?

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    [vb6] - why i can't use the CreateTimerQueue() api function?

    why i can't use the CreateTimerQueue() api function in activex control projects?
    http://75.126.12.18/apidetail.asp?api_id=46
    these problem is like creating threads in these projects
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [vb6] - why i can't use the CreateTimerQueue() api function?

    I've not used that API before, but according to MSDN, the only requirement is that the system be Win2K or newer.

    1. You'd first create a queue & the queue probably should only be created once in your ocx
    2. To add/remove timers to/from the queue, you would use: CreateTimerQueueTimer & DeleteTimerQueueTimer
    3. When the queue is no longer needed, remove it with DeleteTimerQueueEx. Deleting the queue will delete any remaining timers that may still be in the queue
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Re: [vb6] - why i can't use the CreateTimerQueue() api function?

    Quote Originally Posted by LaVolpe View Post
    I've not used that API before, but according to MSDN, the only requirement is that the system be Win2K or newer.

    1. You'd first create a queue & the queue probably should only be created once in your ocx
    2. To add/remove timers to/from the queue, you would use: CreateTimerQueueTimer & DeleteTimerQueueTimer
    3. When the queue is no longer needed, remove it with DeleteTimerQueueEx. Deleting the queue will delete any remaining timers that may still be in the queue
    my is XP
    VB6 2D Sprite control

    To live is difficult, but we do it.

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