Results 1 to 12 of 12

Thread: [RESOLVED] [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

Hybrid View

  1. #1

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    Quote Originally Posted by LaVolpe View Post
    Per that vbAccelerator article's sample code: Function, not sub
    Code:
    Public Function TimerRoutine( _
          ByVal wTimerID As Long, ByVal iMsg As Long, _
          ByVal dwUser As Long, ByVal dw1 As Long, ByVal dw2 As Long _
       ) As Long
    
    End Function
    Function returns no value. Additionally that multimedia callback has 5 parameters not 4. Strongly recommend you read over that article and download the sample code to review it
    with that advice and 1 public variable i put it to work(for catch the usercontrol.hwnd property and use it in sendmessage() api function).
    and seems more acuracy and definition.
    thanks very much
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    for finish: how can i test 1 second?
    100 milliseconds = 1 second?
    VB6 2D Sprite control

    To live is difficult, but we do it.

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    Quote Originally Posted by joaquim View Post
    100 milliseconds = 1 second?
    No, 1000 ms = 1 sec
    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}

  4. #4

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    Quote Originally Posted by LaVolpe View Post
    No, 1000 ms = 1 sec
    some api funcions and vb6 timer control have only 100 and not 1000(tell if i'm incorrect) and the multimedia functions(timeSetEvent() and timeKillEvent() api functions) are 1000.
    thanks for the information and the gelp
    VB6 2D Sprite control

    To live is difficult, but we do it.

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    Quote Originally Posted by joaquim View Post
    some api funcions and vb6 timer control have only 100 and not 1000(tell if i'm incorrect) and the multimedia functions(timeSetEvent() and timeKillEvent() api functions) are 1000.
    thanks for the information and the gelp
    Not quite. VB's timer is milliseconds also. 1 millisecond is 1/1000th of a second. However, not all intervals are milliseconds. For example, GIFs use 100ths of a second, not 1000ths of second.
    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}

  6. #6

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

    Re: [VB6] - Multimedia timers(timeSetEvent() and timeKillEvent() api functions)

    Quote Originally Posted by LaVolpe View Post
    Not quite. VB's timer is milliseconds also. 1 millisecond is 1/1000th of a second. However, not all intervals are milliseconds. For example, GIFs use 100ths of a second, not 1000ths of second.
    ok.. thanks for the information... thanks
    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