might anyone be able to tell me how i can save my mp3 file into my application??
Printable View
might anyone be able to tell me how i can save my mp3 file into my application??
By "save" do you mean you want to play your MP3 file at some point in your program? If so, I would look for an MP3 add-in. When you deploy the app, you can send the MP3 along with it. But, I don't think you can "save the file into the exe."
thats exactly what i want to do, bcuz right now iam using mediaplayer, and the mp3 is stored on my computer. so, if i want to send my file to my friend he wont get the mp3 file along with my application, do u know how i might do that?
I was wondering about this too. To me , it would make since you would have to send the file with your program. Now is this true for the runtimes or is there a way you can have one program, that has all the required files built in?
Try dropping the mp3 into an OLE Container (make sure to embed it instead of Linking it). I havnt tried it with mp3's but dont see why it wouldnt work ...
how would i embed it?
drop an OLE container on a form, and select "Create From File" radio button one the ensuing dialog box. Make sure the "Link" checkbox isnt checked, then browse to the file you want to embedd.Quote:
Originally posted by luravex
how would i embed it?
ok, i have done that, the music will play fine now, but when i turn the project into an exe an error comes up,
run time error '-217467259 (80004005)
method'play' of object 'IMediaPlayer2' failed
How are you playing it? Try the doverb method of the container to play the mp3. Also make sure that ext type mp3 is associated with your player.