Solved

Cannot use mciSendString in Visual C++ 5.0

Posted on 1998-02-09
2
401 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
2 Comments
 
LVL 7

Accepted Solution

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

Author Comment

by:jbabcock
Comment Utility
Ahhh... now that makes sense... thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 47
Need to retreive data from .TFS file exported by DVR 8 166
sameEnds challenge 3 105
EvenOdd challenge 10 81
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

15 Experts available now in Live!

Get 1:1 Help Now