Click here to Skip to main content
15,917,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFigured it out Pin
RobJones27-Oct-04 6:54
RobJones27-Oct-04 6:54 
GeneralC++ Windows Program Pin
Member 139789327-Oct-04 5:54
Member 139789327-Oct-04 5:54 
GeneralRe: C++ Windows Program Pin
David Crow27-Oct-04 6:08
David Crow27-Oct-04 6:08 
Generaldisplaying sequence of images in a dialog box Pin
witty6527-Oct-04 5:50
witty6527-Oct-04 5:50 
GeneralPlay a sound from a resource Pin
doctorpi27-Oct-04 5:21
doctorpi27-Oct-04 5:21 
GeneralRe: Play a sound from a resource Pin
David Crow27-Oct-04 6:10
David Crow27-Oct-04 6:10 
GeneralRe: Play a sound from a resource Pin
doctorpi27-Oct-04 6:34
doctorpi27-Oct-04 6:34 
GeneralRe: Play a sound from a resource Pin
Leyu27-Oct-04 7:22
Leyu27-Oct-04 7:22 
In Resource View Right Click On Your Resource Folder
Select "Import"
In The File Types Filter Select All Files Or *.wav If there is
Then Add The File U Want Thats it
Use ::PlaySound(MAKEINTRESOURCE(ID_MYWAVE,m_hwnd,SND_RESORCE|SND_ASYNC/*other parameters if u want to*/);
include the mmsystem.h header file and add the library winmm.lib in the debug and release configurations

I Have A Problem With PlaySound
The Problem I am Having Is when I exit my app the thread created for playsound with the SND_ASYNC returns a value of -1 i know that using ::PlaySound(NULL,0,0) the thread should be terminated safley i tried it but it fails i created a click sound for each mouse click on LButtonDown I use PlaySound with correct params on LButtonUp i use PlaySound(NULL,0,0) but the thread exits with -1 normal terminal should exit with 0
GeneralRe: Play a sound from a resource Pin
doctorpi27-Oct-04 9:06
doctorpi27-Oct-04 9:06 
GeneralRe: Play a sound from a resource Pin
Leyu27-Oct-04 10:25
Leyu27-Oct-04 10:25 
GeneralRe: Play a sound from a resource Pin
David Crow27-Oct-04 10:28
David Crow27-Oct-04 10:28 
GeneralRe: Play a sound from a resource Pin
David Crow27-Oct-04 7:45
David Crow27-Oct-04 7:45 
GeneralEvent Log automation Pin
jet915327-Oct-04 4:04
jet915327-Oct-04 4:04 
GeneralRe: Event Log automation Pin
David Crow27-Oct-04 6:11
David Crow27-Oct-04 6:11 
GeneralRe: Event Log automation Pin
jet915327-Oct-04 7:00
jet915327-Oct-04 7:00 
GeneralRe: Event Log automation Pin
David Crow27-Oct-04 10:26
David Crow27-Oct-04 10:26 
GeneralRe: Event Log automation Pin
jet915327-Oct-04 10:55
jet915327-Oct-04 10:55 
GeneralRe: Event Log automation Pin
David Crow28-Oct-04 4:58
David Crow28-Oct-04 4:58 
GeneralRe: pointer to a combobox Pin
Shotgun27-Oct-04 3:35
Shotgun27-Oct-04 3:35 
GeneralCustom build Pin
0v3rloader27-Oct-04 3:31
0v3rloader27-Oct-04 3:31 
GeneralRe: Custom build Pin
RChin27-Oct-04 4:30
RChin27-Oct-04 4:30 
GeneralRe: Custom build Pin
Blake Miller27-Oct-04 4:54
Blake Miller27-Oct-04 4:54 
GeneralRe: Custom build Pin
0v3rloader27-Oct-04 6:29
0v3rloader27-Oct-04 6:29 
GeneralRe: Custom build Pin
Blake Miller27-Oct-04 9:39
Blake Miller27-Oct-04 9:39 
GeneralMerging different files into one big file Pin
gunnar6627-Oct-04 3:31
gunnar6627-Oct-04 3:31 

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.