|
-
Dec 23rd, 2002, 11:30 AM
#1
Thread Starter
Member
saving a file into another
might anyone be able to tell me how i can save my mp3 file into my application??
-
Dec 23rd, 2002, 12:02 PM
#2
PowerPoster
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."
-
Dec 23rd, 2002, 12:05 PM
#3
Thread Starter
Member
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?
-
Dec 23rd, 2002, 12:39 PM
#4
Lively Member
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?
-
Dec 23rd, 2002, 12:43 PM
#5
PowerPoster
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 ...
-
Dec 23rd, 2002, 01:20 PM
#6
Thread Starter
Member
-
Dec 23rd, 2002, 04:37 PM
#7
PowerPoster
Originally posted by luravex
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.
-
Dec 23rd, 2002, 09:42 PM
#8
Thread Starter
Member
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
-
Dec 23rd, 2002, 10:45 PM
#9
PowerPoster
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|