Click here to Skip to main content
15,894,540 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get the specified port number is working or not Pin
Hamid_RT10-Jul-06 1:56
Hamid_RT10-Jul-06 1:56 
GeneralRe: how to get the specified port number is working or not Pin
ThatsAlok10-Jul-06 2:57
ThatsAlok10-Jul-06 2:57 
AnswerRe: how to get the specified port number is working or not Pin
Hamid_RT10-Jul-06 2:09
Hamid_RT10-Jul-06 2:09 
AnswerRe: how to get the specified port number is working or not Pin
David Crow10-Jul-06 2:56
David Crow10-Jul-06 2:56 
QuestionDynamic creation of EditBox problem Pin
Uday Janaswamy10-Jul-06 1:29
Uday Janaswamy10-Jul-06 1:29 
AnswerRe: Dynamic creation of EditBox problem Pin
Naveen10-Jul-06 1:38
Naveen10-Jul-06 1:38 
GeneralRe: Dynamic creation of EditBox problem Pin
Uday Janaswamy10-Jul-06 1:40
Uday Janaswamy10-Jul-06 1:40 
QuestionPlaySound Usage Pin
Manjunath S10-Jul-06 1:18
Manjunath S10-Jul-06 1:18 
hi
i want to play .wav audio file using win32 api, and i am using following code.

#include<windows.h>
#include<mmsystem.h.>

int main()
{
PlaySound((LPCWSTR)"tada.wav", NULL, SND_FILENAME | SND_LOOP);
return 0;
}

the code compiles correctly. tada.wav is present in its exact location(code project). this code is not playing the file. it is returning 1.
one small beap comes and exits.

is the code correct?? if yes why it is not playing complete file.
if no, what is the exact method.



Manjunath S
GESL
Bangalore
AnswerRe: PlaySound Usage Pin
RockyJames10-Jul-06 1:32
RockyJames10-Jul-06 1:32 
AnswerRe: PlaySound Usage Pin
Naveen10-Jul-06 1:34
Naveen10-Jul-06 1:34 
GeneralRe: PlaySound Usage Pin
Manjunath S10-Jul-06 2:10
Manjunath S10-Jul-06 2:10 
GeneralRe: PlaySound Usage Pin
Ștefan-Mihai MOGA10-Jul-06 2:53
professionalȘtefan-Mihai MOGA10-Jul-06 2:53 
QuestionRe: PlaySound Usage Pin
David Crow10-Jul-06 3:00
David Crow10-Jul-06 3:00 
QuestionWin32 application Pin
Anu_Bala10-Jul-06 0:24
Anu_Bala10-Jul-06 0:24 
AnswerRe: Win32 application Pin
RockyJames10-Jul-06 0:31
RockyJames10-Jul-06 0:31 
AnswerRe: Win32 application Pin
ThatsAlok10-Jul-06 1:29
ThatsAlok10-Jul-06 1:29 
AnswerRe: Win32 application Pin
David Crow10-Jul-06 3:09
David Crow10-Jul-06 3:09 
AnswerRe: Win32 application Pin
Zac Howland10-Jul-06 4:54
Zac Howland10-Jul-06 4:54 
QuestionBasic Doubt in CMutex Class. Pin
Uday Janaswamy10-Jul-06 0:23
Uday Janaswamy10-Jul-06 0:23 
AnswerRe: Basic Doubt in CMutex Class. Pin
Zac Howland10-Jul-06 4:56
Zac Howland10-Jul-06 4:56 
GeneralRe: Basic Doubt in CMutex Class. Pin
Uday Janaswamy10-Jul-06 18:43
Uday Janaswamy10-Jul-06 18:43 
GeneralRe: Basic Doubt in CMutex Class. Pin
Zac Howland11-Jul-06 2:38
Zac Howland11-Jul-06 2:38 
Questionmodeless dialog almost solved Pin
Desmo1610-Jul-06 0:22
Desmo1610-Jul-06 0:22 
AnswerRe: modeless dialog almost solved Pin
Desmo1610-Jul-06 1:08
Desmo1610-Jul-06 1:08 
QuestionRe: modeless dialog almost solved Pin
David Crow10-Jul-06 3:10
David Crow10-Jul-06 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.