Solved

running mp3 in c or c++ ?

Posted on 2004-09-15
3
166 Views
Last Modified: 2010-04-15
how can i run a wmv or mp3 file in  c or c++? is it possible? should i need mmsystem.h?
0
Comment
Question by:spal10
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 12067518
You could simply invoke the default application to play these files, e.g.

ShellExecute ( NULL, "open", "c:\\somefolder\\file2.mp3", NULL, NULL, SW_SHOW);
ShellExecute ( NULL, "open", "c:\\somefolder\\file2.wmv", NULL, NULL, SW_SHOW);
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

831 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