Solved

Cannot use mciSendString in Visual C++ 5.0

Posted on 1998-02-09
2
428 Views
Last Modified: 2013-11-19
I am trying to use the MCI functions of the API. At first I tried just putting in:

mciSendString("Some Silly Command", NULL, NULL, NULL);

To whicb the compiler whined "error C2065: 'mciSendString' : undeclared identifier". I figured the obvious thing to do was add an include statement:

#include <mmsystem.h>
...
mciSendString("Some Silly Command", NULL, NULL, NULL);

To which the linker replied "unresolved external symbol __imp__mciSendStringA@16". Now I'm stumped - what do I have to do to use these commands?
0
Comment
Question by:jbabcock
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1315841
You must link your project with winmm.lib
0
 
LVL 1

Author Comment

by:jbabcock
ID: 1315842
Ahhh... now that makes sense... thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 145
Whole sheet autoscrub still needed 19 54
Looking for a specific application/software 2 124
Prevent this page from creating additional dialogs. 3 764
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

738 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