Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

linking with mmsystem

Posted on 1998-03-14
4
Medium Priority
?
267 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 200 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

824 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