Put aside your current project, then as a test, do what's below:
Open Dev
Goto, File/New/Project
Select Windows App
Save 'Project 1' when prompted
Goto Project, Add Resource file (example below, just rename a wav file to satisfy parameter - what's below is your actual innards for the rc file)
Add #define ID_SOUND1 100 //add to main.c file, just below include windows.h
Code:
#define APSTUDIO_READONLY_SYMBOLS
#ifndef __BORLANDC__
#include "winresrc.h"
#endif
#undef APSTUDIO_READONLY_SYMBOLS
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENC)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_CAN
#pragma code_page(1252)
#endif
ID_SOUND1 WAVE DISCARDABLE "clickme.wav"
#endif
#ifndef APSTUDIO_INVOKED
#endif
That should compile without problems, provided you've placed a wav file named 'clickme' in directory that your project files are residing. I'm not particular grand at explaining things, so that example is about the best I can do....