petitbourgeois
Programmer
Good morning guys:<br>
<br>
I am building a small app, an alarm clock. It is a dialog-based program, generated through the MFC AppWizard in VC++ 6.0. Ithen use a timer to verify when it is time to sound the alarm. I wanted to use the sndPlaySound API instruction, but can't seem to get it to work. I tried its equivalent PlaySound, and it does the same. <br>
Here is my syntax:<br>
<br>
sndPlaySound("tada.wav", SND_ASYNC);<br>
<br>
The error message I keep getting is as follows:<br>
<br>
Chap4Dlg.obj : error LNK2001: unresolved external symbol __imp__sndPlaySoundA@8<br>
Debug/Chap4.exe : fatal error LNK1120: 1 unresolved externals<br>
Error executing link.exe.<br>
<br>
Chap4.exe - 2 error(s), 0 warning(s)<br>
<br>
Do I need to give the compiler any specific directive in order to use Win API instructions ? Or is there an API LIB I should link the program with ?<br>
<br>
Thanks a lot for your help guys !<br>
<br>
Simon <p>Zoopsie<br><a href=mailto
etit_bourgeois@videotron.ca>petit_bourgeois@videotron.ca</a><br><a href= > </a><br>I understand the process of the linked lists. What power !
<br>
I am building a small app, an alarm clock. It is a dialog-based program, generated through the MFC AppWizard in VC++ 6.0. Ithen use a timer to verify when it is time to sound the alarm. I wanted to use the sndPlaySound API instruction, but can't seem to get it to work. I tried its equivalent PlaySound, and it does the same. <br>
Here is my syntax:<br>
<br>
sndPlaySound("tada.wav", SND_ASYNC);<br>
<br>
The error message I keep getting is as follows:<br>
<br>
Chap4Dlg.obj : error LNK2001: unresolved external symbol __imp__sndPlaySoundA@8<br>
Debug/Chap4.exe : fatal error LNK1120: 1 unresolved externals<br>
Error executing link.exe.<br>
<br>
Chap4.exe - 2 error(s), 0 warning(s)<br>
<br>
Do I need to give the compiler any specific directive in order to use Win API instructions ? Or is there an API LIB I should link the program with ?<br>
<br>
Thanks a lot for your help guys !<br>
<br>
Simon <p>Zoopsie<br><a href=mailto