How do you embed a .wav file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DGee
    New Member
    • Feb 2008
    • 5

    How do you embed a .wav file?

    I have currently got a program that when a button is pressed, a sound is played, however if there is no file, then a beep is played, is there any way to embed an audio file, so i don't have to worry about loose files. I am using VB6.


    DGee
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by DGee
    I have currently got a program that when a button is pressed, a sound is played, however if there is no file, then a beep is played, is there any way to embed an audio file, so i don't have to worry about loose files. I am using VB6.


    DGee
    You can use RC.exe to create a resource file that contains Binary data (in you case, it will be your wav file).
    Then, you add the Resource file to your VB6 project.

    The caveats and how to do this are shown in this article:

    Comment

    • DGee
      New Member
      • Feb 2008
      • 5

      #3
      Quickly i figured out that i can embed files within OLEs. I am just wondering whether i can play a .wav (which is help in an OLE)

      Comment

      • VBWheaties
        New Member
        • Feb 2008
        • 145

        #4
        Originally posted by DGee
        Quickly i figured out that i can embed files within OLEs. I am just wondering whether i can play a .wav (which is help in an OLE)
        kool. I dont know if this means you are ok or not but it seems like you have some idea going. good luck.

        Comment

        Working...