I wish to do a program in c++ that enables me to play music as part of my school project.
I want to know if is this is possible.
I also wish to know if photos and other media can be similarly accessed and where i can get information on how to do the above.
standalone i dont think c++ can play anythings other than pc-speaker sounds, so if you plan to play actual music (mp3 etc) you'd need to look into fmod, bass audio lib, alegro (or whatever they call it) and so on.
If you wish to play music there are 2 ways possible:
Windows PlaySound() : Works only for .wav
MMSYSTEM mciSendString(): Works for midi & mp3
Photo's can also be read just like normal file's & barring their header information I don't see what you can make of it, since you cannot display them like an Image Viewer inside your program until & unless it's an Windows form app.
You can always do that. For that you need to installed latest windows SDK and you will find Microsoft DirectX - DirectShow library in the Multimedia folder. This library provides a set of C++ APIs to handle multimedia streams.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.