Solved

running mp3 in c or c++ ?

Posted on 2004-09-15
3
164 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

744 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

16 Experts available now in Live!

Get 1:1 Help Now