Solved

running mp3 in c or c++ ?

Posted on 2004-09-15
3
167 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

Industry Leaders: 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
Passing command line arguments in C 10 100
Detect CR LF to each line 12 175
How to build c program using make in mingw environment? 9 79
Using ANSI C how to Read a .csv file 10 114
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion 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.

733 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