cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Open Sesame
Open Sesame
Mar 4, 2011 at 4:30pm
Mar 4, 2011 at 4:30pm UTC
raulkolk
(37)
Hello fellow geeks. I have another question for you.
Is there a way to open files through console applications?
Something like:
OpenFile(
"arandomsong.mp3"
)
Thanks!
Mar 4, 2011 at 4:39pm
Mar 4, 2011 at 4:39pm UTC
Disch
(13742)
Yes
http://cplusplus.com/doc/tutorial/files/
Of course that just opens a file. If you want to
play
an mp3, that's something else entirely.
I'm not sure if this is entirely on point, but it might help you:
http://cplusplus.com/forum/articles/28558/
Mar 4, 2011 at 4:59pm
Mar 4, 2011 at 4:59pm UTC
raulkolk
(37)
Hehe, though it was entirely off point, it helped me a LOT. Thanks for that.
But still, I need to
play
the mp3 file with a console application.
Any suggestions?
Mar 4, 2011 at 5:47pm
Mar 4, 2011 at 5:47pm UTC
raulkolk
(37)
Found the code :)
If anyone is looking for the same thing, this will get the job done:
ShellExecute();
Topic archived. No new replies allowed.