Results 1 to 2 of 2

Thread: sounds

  1. #1

    Thread Starter
    Addicted Member Ester's Avatar
    Join Date
    Feb 2001
    Posts
    148

    Cool

    hello there..
    im developing an applications that says "good morning/afternoon/evening/night" on startup, this might sound silly, but would anyone kindly give me the time limits that i can use in my program for morning, then the limit for afternoon, evening night
    #2 im actually a beginner when it comes to using multimedia with vb6, i know this is easy, but i never tried, how can we open a sound file and then close it after it finishes..ummm someone could possibly help by giving me hints for the code i need to use for the good morning/afternoon etc part..
    thx
    Tell whoever has sorrow,
    Grief shall never last
    Just as joy has no tommorow,
    Woe is bound not to last
    Estrelitta

  2. #2
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    As for Q1: Try in someway to compare the dates, by converting them into the date format...????

    Q2: Use the playsound API:
    Code:
    Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

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