3 Replies - 398 Views - Last Post: 05 February 2012 - 10:24 AM Rate Topic: -----

Topic Sponsor:

#1 prasad.weer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 10-November 11

Attach audio file to an EXE file.....

Posted 02 February 2012 - 09:53 AM

I know how to attach image file to an exe. we can do it using picture box or image tool and picture property of it. now i want to know is there any method to attach mp3 file to an exe? we can use application path method. but in that case audio file is separate from exe file. i just need to know attach mp3 to exe like picture attach to picture box. Please tell me the method.....
Is This A Good Question/Topic? 0
  • +

Replies To: Attach audio file to an EXE file.....

#2 huzaifa.iu  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 60
  • Joined: 13-December 10

Re: Attach audio file to an EXE file.....

Posted 02 February 2012 - 09:57 AM

When you Deploy/Build the EXE file, you can select the resources you want to be deployed along with your program. That way, the MP3 will be copied on the system of whoever runs/installs your EXE file.
Was This Post Helpful? 0
  • +
  • -

#3 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: Attach audio file to an EXE file.....

Posted 02 February 2012 - 10:57 AM

As far as I'm aware, there is no container for MP3 files.

You can store your MP3's in a resource file and play them from there, but it will still be a separate file.
Was This Post Helpful? 0
  • +
  • -

#4 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 323
  • View blog
  • Posts: 1,950
  • Joined: 19-May 09

Re: Attach audio file to an EXE file.....

Posted 05 February 2012 - 10:24 AM

Either of the above solutions work. If you only have one MP3 file (you haven't said how many you are using), you probably don't need to use a resource file. However, you should understand what a resource file is and make up your own mind. Resource files are a good way to keep track of various forms of data that accompany an exe.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1