|
Sample Code - Wave Format Player |
User Contributed Comments(5) |
|
[1] Raza | 2006-05-13 19:33:27
It's a nice and uderstanable code and sequence provided by the Author Mr.Arkon and I really appriciate his efforts. | [2] vu dinh hai | 2006-10-30 07:12:38
thanks, but it have some error which i don't understand:
Compiling...
Cpp1.cpp
Linking...
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutClose@4
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutUnprepareHeader@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutWrite@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutPrepareHeader@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutOpen@24
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
Cpp1.exe - 7 error(s), 0 warning(s)
-------------------------------------------
and i don't know" // Do NOT forget to import winmm.lib!" and how to do it?
could you tell me soon?
Thanks you very much! and nice to meet you
| [3] arkon | 2006-10-30 18:49:57
#pragma comment(lib, "winmm.lib")
should do the work. | [4] zerihun | 2007-06-24 10:05:56
i have encountered the run time error that says
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/play.exe : fatal error LNK1120: 1 unresolved externals |
[5] arkon | 2007-06-26 13:24:16
it means you created a console application instead of a win32 application.
just change the winmain to main... | |
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further notice.
Use the comment system decently.
Post your comment:
|
|
|