How to insert music into the project .... wave , mp3 midi files...
to run with the program???
Printable View
How to insert music into the project .... wave , mp3 midi files...
to run with the program???
You can include any file type in the executable in form of a custom resource.Quote:
Originally Posted by Ninja
Please find the attached zip archive for which you'll have to change the extension back to *.zip (I had to change the file's extension to frm because the upload procedure limits the file size of a zip to 100 kb, but a frm file can have more).
I have downloaded this source code a long time ago (don't remember from where) and didn't test it myself. I hope it will work and be useful for you. If you have questions about it, there's an email address in the source code header: Tobias Bading ([email protected])
Please let me know if you managed to get it working,
Thanks,
k thanks....
include following file:
then add following code:Code:#include "mmsystem.h"
Go to Project->Settings->Code:::PlaySound("Chimes.wav",NULL,SND_FILENAME|SND_ASYNC);
select tab links,
in 'Object/Library Modules', add following file:
winmm.lib
run the application. if it dont work or any problem comes, i'll send example project, contact me.
For a bit more control than PlaySound take a look at mciSendString(), plenty of examples knocking about if you go to google.....