Results 1 to 9 of 9

Thread: saving a file into another

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    50

    saving a file into another

    might anyone be able to tell me how i can save my mp3 file into my application??

  2. #2
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    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."

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    50
    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?

  4. #4
    Lively Member
    Join Date
    Dec 2002
    Location
    Under the Boardwalk
    Posts
    79
    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?
    -=]{ i ( ( er =-

  5. #5
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    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 ...

  6. #6

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    50
    how would i embed it?

  7. #7
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    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.

  8. #8

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    50
    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

  9. #9
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    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
  •  



Click Here to Expand Forum to Full Width