PDA

Click to See Complete Forum and Search --> : sounds


Ester
Feb 11th, 2001, 05:57 PM
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

CyberCarsten
Feb 14th, 2001, 07:19 AM
As for Q1: Try in someway to compare the dates, by converting them into the date format...????

Q2: Use the playsound API:

Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long