Solved

linking with mmsystem

Posted on 1998-03-14
4
236 Views
Last Modified: 2013-12-03
I'm using Msdev 5.0 VC++ and i'm trying to use mmsystem.h. But for the life of me i can't get rid of the link errors. I get: error LNK2001: unresolved external symbol __imp__mmioClose@8 for all the functions i try and use in the module.
I looked in the help file and it said to link without the /md switch (multitheaded dll) but that didn't seem to help either.
I've probably just messed my project settings up- any ideas?
thx
0
Comment
Question by:nemitzan
  • 2
4 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1412013
You need to be linking with a .lib file associated with mmsystem.h.  Are you?
0
 
LVL 4

Accepted Solution

by:
tflai earned 50 total points
ID: 1412014
Under "Project Setting"->"Link"->"Object/library modules", add "WINMM.LIB".
Hi nietod, you should have post it as an ANSWER.  Now I kind of feel bad answering this. :-)
0
 
LVL 22

Expert Comment

by:nietod
ID: 1412015
Thats okay, I didn't know the name of the library.  
0
 

Author Comment

by:nemitzan
ID: 1412016
Woohoo! Cool thx guys :)  I looked around for mmsystem.lib before, guess thats why i couldn't find it ;)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now