CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Adding File

  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Adding File

    I need to add .wav file to my program. If I use setup wizard, then it'll make a folder with .exe and .wav files. I need to place .wav into my .exe (like an icon), so it'll be in my program and not separate file. You can do it with Delphi, what about VB?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Adding File

    in VB you can add a file to the EXE of your program by integrating it in a RES File and adding that res file to your project.
    IMHO, you still have to extract that binary resource from your exe (LoadResData) and write it to a (temporary) file to play it.
    To add a file to a res file you need the resource compiler.


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

Featured