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

    Make '.wav' a resource?

    I want to play a .wav file in my application. I can play from file with no problem using:

    PlaySound( "c:\\mysound.wav",NULL, SND_ASYNC|SND_FILENAME );

    But, I don't want to distribute '.wav' files with my app. Any way to make the sounds part of my app, say as a resource?

    Thanks,
    GL Hovis


  2. #2
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: Make '.wav' a resource?


  3. #3
    Join Date
    May 1999
    Posts
    40

    Re: Make '.wav' a resource?

    try this.
    PlaySound("IDR_WAVE1", NULL, SND_RESOURCE | SND_ASYNC);

    hope helps.


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