Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About sound... Pin
Roger Wright19-Dec-03 20:28
professionalRoger Wright19-Dec-03 20:28 
GeneralRe: About sound... Pin
Monty219-Dec-03 19:24
Monty219-Dec-03 19:24 
GeneralRe: About sound... Pin
Roger Wright19-Dec-03 20:29
professionalRoger Wright19-Dec-03 20:29 
Generalusing a sheet of excel Pin
aguest19-Dec-03 5:57
aguest19-Dec-03 5:57 
GeneralRe: using a sheet of excel Pin
Toco19-Dec-03 6:51
Toco19-Dec-03 6:51 
GeneralRe: using a sheet of excel Pin
aguest19-Dec-03 7:18
aguest19-Dec-03 7:18 
GeneralCheck-box inside a CListCtrl Issue..! Pin
Halloko19-Dec-03 5:50
Halloko19-Dec-03 5:50 
General.rc file and sound resource Pin
ns19-Dec-03 5:34
ns19-Dec-03 5:34 
I tried to import a sound file from the insert menu and got these entries automatically in the .rc file:

///////////////
//
// WAVE
//

IDR_WAVE1               WAVE    DISCARDABLE     "DOOR.WAV"
#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////

Heres how I use it:

case WM_COMMAND:
       {
       // what menu item?
       switch(wparam)

             case ID_SMENU_PLAY_DOOR:
                  {
                  PlaySound(MAKEINTRESOURCE (IDR_WAVE1),NULL,SND_FILENAME | SND_ASYNC);
                  } break;

             default: break;
             } // end switch


but the compiler says:
error C2065: 'IDR_WAVE1' : undeclared identifier


Puzzled.
Thanks,
ns
GeneralRe: .rc file and sound resource Pin
Jonathan [Darka]19-Dec-03 6:03
professionalJonathan [Darka]19-Dec-03 6:03 
GeneralRe: .rc file and sound resource Pin
ns19-Dec-03 7:06
ns19-Dec-03 7:06 
GeneralCString to ULONG Pin
star fish19-Dec-03 5:32
star fish19-Dec-03 5:32 
GeneralRe: CString to ULONG Pin
RChin19-Dec-03 5:40
RChin19-Dec-03 5:40 
GeneralRe: CString to ULONG Pin
Terry O'Nolley19-Dec-03 15:19
Terry O'Nolley19-Dec-03 15:19 
GeneralRe: CString to ULONG Pin
RChin21-Dec-03 0:29
RChin21-Dec-03 0:29 
GeneralRe: CString to ULONG Pin
RChin21-Dec-03 0:30
RChin21-Dec-03 0:30 
GeneralRe: Beginner need help to choose Pin
sbouli19-Dec-03 4:58
sbouli19-Dec-03 4:58 
GeneralBeginner need help to choose Pin
sbouli19-Dec-03 4:29
sbouli19-Dec-03 4:29 
GeneralRe: Beginner need help to choose Pin
valikac19-Dec-03 4:56
valikac19-Dec-03 4:56 
GeneralRe: Beginner need help to choose Pin
Ian Darling19-Dec-03 5:54
Ian Darling19-Dec-03 5:54 
GeneralRe: Beginner need help to choose Pin
sbouli19-Dec-03 6:06
sbouli19-Dec-03 6:06 
GeneralRe: Beginner need help to choose Pin
Ian Darling21-Dec-03 22:15
Ian Darling21-Dec-03 22:15 
GeneralRe: Beginner need help to choose Pin
sbouli22-Dec-03 2:38
sbouli22-Dec-03 2:38 
GeneralRe: Beginner need help to choose Pin
Ian Darling22-Dec-03 2:57
Ian Darling22-Dec-03 2:57 
Generalword and VISUAL C++ Pin
andfrr19-Dec-03 4:13
andfrr19-Dec-03 4:13 
Questionwhat are these fonts anyway Pin
wolfgang-schiffer19-Dec-03 4:07
susswolfgang-schiffer19-Dec-03 4:07 

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.