Advertisement

I cannot run the source code for lesson 21

Started by November 25, 2004 09:11 AM
7 comments, last by GameDev.net 20 years, 3 months ago
what should i do to run the source code for lesson 21.. I used visual C++ to compile the code.. but they are two errors come out. Lesson21.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0 Lesson21.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12 I already added the "glu32.lib opengl32.lib glaux.lib" in the project-->setting-->LInk... but i still cannot run the source code.. Can anyone help me.. thanks
As far as I remember, you need to add "Winmm.lib".

Hope it helps!
___Quote: Know where basis goes, know where rest goes.
Advertisement
thanks a lot...it works.. Yeahh
you are the man....
where did you get the information about winmm.lib... i also want to know...
Quote:
Original post by da_grat1
thanks a lot


You're welcome. :)

quote]
where did you get the information about winmm.lib... i also want to know...

If you write for Windows, MSDN is the best place you can search for answers.

See ya'
___Quote: Know where basis goes, know where rest goes.
No, for that you'll have to use a different API like SDL, OpenAL or DirectSound... (I prefer OpenAL since it's kinda like OpenGL)
Killers don't end up in jailThey end up on a high-score!
OpenAL I believe to be easier than DirectSound, plus it is like OpenGL. You can use 2d or 3d sound effects which are quite easy to create. Sounds are positioned kind of like translating an object in OpenGL, a simple one-liner. The listener position is the same way, and velocities can also be programmed the same way. Windows API for multimedia kind of blows for games, but works well for simpler apps, in other words, use OpenAL.


This topic is closed to new replies.

Advertisement