Solved

Cannot use mciSendString in Visual C++ 5.0

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 130
post4 challenge 28 100
unix example issues 18 90
how to split multiple lines delimiter : 8 99
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

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