Click here to Skip to main content
15,922,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Add Menu to a Dialog Application Pin
Grahamfff1-Nov-03 10:53
Grahamfff1-Nov-03 10:53 
GeneralConvert OpenGL coord to pixel Pin
Jean Bédard31-Oct-03 9:58
Jean Bédard31-Oct-03 9:58 
GeneralRe: Convert OpenGL coord to pixel Pin
Orhun Birsoy31-Oct-03 10:07
Orhun Birsoy31-Oct-03 10:07 
GeneralWindows Forms Question (C++) Pin
krajnik31-Oct-03 9:21
krajnik31-Oct-03 9:21 
GeneralRe: Windows Forms Question (C++) Pin
murali_utr31-Oct-03 18:13
murali_utr31-Oct-03 18:13 
GeneralUI Design Discussions Pin
armentage31-Oct-03 6:12
armentage31-Oct-03 6:12 
GeneralRe: UI Design Discussions Pin
Michael P Butler31-Oct-03 6:34
Michael P Butler31-Oct-03 6:34 
GeneralRe: UI Design Discussions Pin
armentage31-Oct-03 6:41
armentage31-Oct-03 6:41 
GeneralRe: UI Design Discussions Pin
Trollslayer31-Oct-03 6:41
mentorTrollslayer31-Oct-03 6:41 
QuestionHow can I save a file in rich text format? Pin
DanYELL31-Oct-03 6:07
DanYELL31-Oct-03 6:07 
AnswerRe: How can I save a file in rich text format? Pin
includeh1031-Oct-03 6:30
includeh1031-Oct-03 6:30 
AnswerRe: How can I save a file in rich text format? Pin
Michael P Butler31-Oct-03 6:38
Michael P Butler31-Oct-03 6:38 
GeneralPolar Plots (repost) Pin
jhorstkamp31-Oct-03 3:55
jhorstkamp31-Oct-03 3:55 
GeneralRe: Polar Plots (repost) Pin
Jason Henderson31-Oct-03 4:21
Jason Henderson31-Oct-03 4:21 
GeneralRe: Polar Plots (repost) Pin
jhorstkamp31-Oct-03 5:38
jhorstkamp31-Oct-03 5:38 
GeneralRe: Polar Plots (repost) Pin
Rick York31-Oct-03 7:03
mveRick York31-Oct-03 7:03 
GeneralRe: Polar Plots (repost) Pin
IGeorgeI31-Oct-03 9:01
IGeorgeI31-Oct-03 9:01 
GeneralRe: Polar Plots (repost) Pin
jhorstkamp31-Oct-03 10:00
jhorstkamp31-Oct-03 10:00 
GeneralRe: Polar Plots (repost) Pin
Gary R. Wheeler31-Oct-03 13:22
Gary R. Wheeler31-Oct-03 13:22 
GeneralPolar Plots Pin
Anonymous31-Oct-03 3:49
Anonymous31-Oct-03 3:49 
GeneralI wanna know how to detect file and folder deletion Pin
User 21559731-Oct-03 2:55
User 21559731-Oct-03 2:55 
GeneralRe: I wanna know how to detect file and folder deletion Pin
vcplusplus31-Oct-03 5:20
vcplusplus31-Oct-03 5:20 
Generalabout playing .wav file Pin
yingkou31-Oct-03 2:07
yingkou31-Oct-03 2:07 
GeneralRe: about playing .wav file Pin
Graham Bradshaw31-Oct-03 2:30
Graham Bradshaw31-Oct-03 2:30 
You might be making this harder than it needs to be. Assuming you have the path to a wav file in variable, say szSoundFile

::PlaySound(szSoundFile, NULL, SND_FILENAME | SND_ASYNC | SND_NODEFAULT);

will play the sound for you. There's a whole bunch of options controlling how PlaySound works, relating to how currently playing sounds are handled and so on, but all the flags are documented in the platform SDK.

You'll need to #include "mmsystem.h", and link to winmm.lib, but that should do it for you.

Generala very basic quest! Pin
31-Oct-03 1:42
suss31-Oct-03 1:42 

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.