Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ program Pin
Leyu16-Oct-04 6:26
Leyu16-Oct-04 6:26 
GeneralRe: C++ program Pin
toxcct16-Oct-04 6:58
toxcct16-Oct-04 6:58 
GeneralRe: C++ program Pin
Leyu17-Oct-04 6:30
Leyu17-Oct-04 6:30 
GeneralRe: C++ program Pin
Aamir Butt17-Oct-04 21:44
Aamir Butt17-Oct-04 21:44 
GeneralC++ program Pin
namoorthy16-Oct-04 3:50
namoorthy16-Oct-04 3:50 
GeneralRe: C++ program Pin
Mad__18-Oct-04 0:34
Mad__18-Oct-04 0:34 
Generalmake a sound event Pin
mark18216-Oct-04 3:49
mark18216-Oct-04 3:49 
GeneralRe: make a sound event Pin
PJ Arends16-Oct-04 7:21
professionalPJ Arends16-Oct-04 7:21 
In your .cpp file you have to include mmsystem.h and link to the winmm library. You can then use PlaySound to play .wav files.
#include <mmsystem.h>
#pragma comment (lib, "winmm.lib")
.
.
.
PlaySound(_T("Ring.wav"), NULL, SND_ASYNC | SND_FILENAME);




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Generalcant't compile with vs 6.0 Pin
morten4116-Oct-04 3:00
morten4116-Oct-04 3:00 
QuestionHow to write to data to a text file Pin
pork chop16-Oct-04 2:54
pork chop16-Oct-04 2:54 
AnswerRe: How to write to data to a text file Pin
Gary R. Wheeler16-Oct-04 3:00
Gary R. Wheeler16-Oct-04 3:00 
GeneralHelp with program structure Pin
ryuki16-Oct-04 0:53
ryuki16-Oct-04 0:53 
GeneralRe: Help with program structure Pin
Mad__16-Oct-04 1:10
Mad__16-Oct-04 1:10 
GeneralRe: Help with program structure Pin
ryuki16-Oct-04 11:52
ryuki16-Oct-04 11:52 
GeneralRe: Help with program structure Pin
Mad__18-Oct-04 0:16
Mad__18-Oct-04 0:16 
GeneralOne dialog after the other in mfc dialog app Pin
Anonymous16-Oct-04 0:50
Anonymous16-Oct-04 0:50 
GeneralRe: One dialog after the other in mfc dialog app Pin
Mad__16-Oct-04 1:49
Mad__16-Oct-04 1:49 
GeneralRe: One dialog after the other in mfc dialog app Pin
Maximilien16-Oct-04 2:33
Maximilien16-Oct-04 2:33 
GeneralGDI resource problem Pin
Leyu16-Oct-04 0:29
Leyu16-Oct-04 0:29 
GeneralRe: GDI resource problem Pin
PJ Arends16-Oct-04 7:34
professionalPJ Arends16-Oct-04 7:34 
GeneralRe: GDI resource problem Pin
16-Oct-04 18:18
suss16-Oct-04 18:18 
GeneralRe: GDI resource problem Pin
PJ Arends16-Oct-04 23:35
professionalPJ Arends16-Oct-04 23:35 
Generalsound event/alerts Pin
mark18215-Oct-04 21:19
mark18215-Oct-04 21:19 
GeneralRe: sound event/alerts Pin
Sujan Christo15-Oct-04 22:32
Sujan Christo15-Oct-04 22:32 
GeneralProblem with the tree Control Pin
Azghar Hussain15-Oct-04 20:15
professionalAzghar Hussain15-Oct-04 20:15 

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.