answersLogoWhite

0

How do you open a music file in C?

User Avatar

Sugapriyap

Lvl 1
14y ago
Updated: 8/19/2019

This is not a C, or any other language, question. It is a platform / environment question. In MS Windows, assuming you have an appropriate association set for the desired music file, be it .MID, .WAV, .SWF, .CDA, ,MP3, .WM, .WMA, .WMV, .WVX, or whatever, you can simply do a Shell Execute function ...

ShellExecute (hwnd, "open", "SomeFile.ext", NULL, NULL, SW_SHOW);

Sometimes, COM has to be initialized before doing this ...

CoInitialize(NULL);

... and, if so, it has to be deinitialized when you are done ...

CoUninitialize(NULL);

Of course, there are *.Ex versions of these API's, which should be used in modern versions of Windows, so consult the API documentation.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is a statement use to open data file in c?

FILE* file; file = fopen("some-file.dat");


How do you open an ipd file in Excel?

You can not open I-Pad music files in Excel.


How many file types are avilable in C?

You can open any file with C, since it does not distinguish between file types. It's the way you read from the file.


How do you open a file in c plus plus?

fopen()


How do you load a program in turbo c?

File/Open


How do you download music on a phillips mp3 player?

download your music to the computer music file first. hook up your philips device to your computer using the cord that came with it. if the computer asks what you want to do with the device, click on open file folders. find the music file on the device and open that. once that is done, open a new window on the computer and open your computers music file. minimize both windows on your screen so that you can see them both at the same time. then, click on the song in your computer music file, drag and drop to the device music file by click and hold on the song name with the mouse and move it over to the other file. you can also left click on song name to hilight it, right click, copy. then go to device music file, right click and paste


How do you copy c program to msword?

If you want to copy C source code to a new file in MS Word, use the following steps:Open the C program in Notepad if it's not already open.Select all text (usually CTRL+A works fine).Copy that text to the clipboard (CTRL+C).Open MS Word (or Wordpad).CTRL+V to paste the C source code.Save if desired.If the C source code is in a file, and you have Windows Explorer open with that file showing, you can open MS Word, and then drag the file from Explorer to MS Word, which will open that file.


Where is the cache file that holds the music your computer downloads when you stream music?

if you go on to the program where you download music on right click on a music download then find open file!!! or you can search on the search program?????:)


How you can delete the data in the file when you open the file in read or write mode in C programming?

When you open a file in write mode, eg. fp=fopen("filename.txt","w"); the content of the file is deleted.


How do you download music to a PSP 3000?

You have to plug in the psp with a usb cable to a computer, then you turn on the psp and go to the settings and find "usb mode" turn that on and go into my computer on your PC and click on the jack the psp is plugged into and open the psps music file, then open your file that has your music in it and just drag the music files to the psps file


How do you i open a c page in visual studio 2005?

Just double-click the .c file. If associations are setup properly, Visual Studio will launch and open the file. However, it is better to incorporate the .C file into a project file, so that related files and settings will also be retained. In that case, simply double-click the project or workspace file.


I was trying to put my iPod music into my computer but then I ended up saving a file with the music and turned all my icons to Internet Explorer and it always opens it Can you help me?

Right click on the file and choose Open with... Choose software which you want to use open the file.