[Dev-C++] RE: Dev-cpp-users digest, Vol 1 #2717 - 1 msg
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: DJK S. W. <ic3...@ho...> - 2006-04-10 23:01:09
|
Hi, I saw your code and I think PlaySound take 3 parameters not 4 and test = in Visual C++ it works fine =20 #include <mmsystem.h> // ADD THIS LINE #pragma comment( lib, "winmm.lib" ) // ADD THIS LINE =20 PlaySound( "c:\\intro.wav", NULL, SND_FILENAME | SND_ASYNC ); Try it in Windows XP =20 see you > Date: Sun, 9 Apr 2006 20:25:35 -0700> From: dev-cpp-users-request@lists.s= ourceforge.net> Subject: Dev-cpp-users digest, Vol 1 #2717 - 1 msg> To: dev= -cpp...@li...> > Send Dev-cpp-users mailing list submiss= ions to> dev...@li...> > To subscribe or unsubscribe= via the World Wide Web, visit> https://lists.sourceforge.net/lists/listinf= o/dev-cpp-users> or, via email, send a message with subject or body 'help' = to> dev...@li...> > You can reach the person= managing the list at> dev...@li...> > When re= plying, please edit your Subject line so it is more specific> than "Re: Con= tents of Dev-cpp-users digest..."> > > Today's Topics:> > 1. PlaySound f= or WINAPI (fl...@at...)> > --__--__--> > Message: 1> From: fl...@at...= t> To: dev...@li...> Date: Sun, 09 Apr 2006 18:56:53= +0000> Subject: [Dev-C++] PlaySound for WINAPI> > > --NextPart_Webmail_9m3= u9jl4l_3110_1144609013_0> Content-Type: text/plain> Content-Transfer-Encodi= ng: 8bit> > I have a windows programming book with a sound that is supposed= to play when my "Hello World" window is activated. Problem is, the command= is not recognized. > Book says to include a library file called "WinMM.Lib= " but after trying this using WATCOM and Visual C++ files of the same name = - it still doesn't work. It works in WATCOM, but not DEV-Cpp. The window op= ens OK if I comment out the PlaySound line.> > Any Ideas?> > PlaySound("Hel= loworld.wav", NULL, SND_FILENAME, SND_ASYNC)> Fred> --NextPart_Webmail_9m3u= 9jl4l_3110_1144609013_0> Content-Type: text/html> Content-Transfer-Encoding= : 8bit> > <html>> <!-- BEGIN WEBMAIL STATIONERY -->> <head></head>> <body>>= <!-- WEBMAIL STATIONERY noneset -->> <DIV>I have a windows programming boo= k with a sound that is supposed to play when my "Hello World" window is act= ivated. Problem is, the command is not recognized. </DIV>> <DIV>Book says t= o include a library file called "WinMM.Lib" but after trying this using WAT= COM and Visual C++ files of the same name - it still doesn't work. It works= in WATCOM, but not DEV-Cpp. The window opens OK if I comment out the PlayS= ound line.</DIV>> <DIV> </DIV>> <DIV>Any Ideas?</DIV>> <DIV> </DI= V>> <DIV>PlaySound("Helloworld.wav", NULL, SND_FILENAME, SND_ASYNC)</DIV>> = <DIV>Fred</DIV>> <!-- END WEBMAIL STATIONERY -->> > </body>> </html>> > --N= extPart_Webmail_9m3u9jl4l_3110_1144609013_0--> > > > --__--__--> > ________= _______________________________________> Dev-cpp-users mailing list> Dev-cp= p-...@li...> TO UNSUBSCRIBE: http://www.noicys.cjb.net/de= vcpp/ub.htm> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users> > = > End of Dev-cpp-users Digest _________________________________________________________________ Charla con tus amigos en l=EDnea mediante MSN Messenger: http://messenger.latam.msn.com/= |