Jump to content

C++ and Visual express C++ (windows) question

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Taoist

Taoist

    Newbie

  • Members
  • Pip
  • 7 posts
Hello, I am teaching myself programming and am doing it with a focus around sound and audio since that's where my interest lies . I wrote a little piece of code to trigger sound files from keys on the keyboard. However, I did it in DEV C++ and in order to do this I needed to add -lwinmm to the linker in DEV C++.

My newbie question is, how do I do this in Visual Express C++ ?

Here is the code written as a little tutorial that outlines how I got it to work in DEV C++

C code:Trigger audio file from keyboard in Windows XP

Thanks in advance.

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
You would need to add the library to your project through project settings for it to be searched.

Try checking in project properties -> Configuration properties -> Linker.

In there you may add the library reference and add it as a dependency.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users