Solved

Cannot use mciSendString in Visual C++ 5.0

Posted on 1998-02-09
2
420 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
has22 challenge 11 105
child constructor and parent constructor, overriding and overloading 6 89
moto 4g phone enable finger print 4 28
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

820 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