Home All Groups Group Topic Archive Search About

wav files in programs

Author
24 Apr 2006 5:32 AM
andreas
hi,
it is possible to include picture files in a imagelist so that these files
are hidden in the program files
is it possible to do the same thing with sound(wav) files?
thanks for any response

Author
24 Apr 2006 5:43 AM
Tom Shelton
andreas wrote:
> hi,
> it is possible to include picture files in a imagelist so that these files
> are hidden in the program files
> is it possible to do the same thing with sound(wav) files?
> thanks for any response

Sure.  Include them in your project as an embeded resource.  Then they
will be compiled into your executable.

--
Tom Shelton [MVP]
Author
24 Apr 2006 5:59 PM
Herfried K. Wagner [MVP]
"andreas" <andr***@pandora.be> schrieb:
> it is possible to include picture files in a imagelist so that these files
> are hidden in the program files
> is it possible to do the same thing with sound(wav) files?

Add the wave file to the project and set its "Build Action" to "Embedded
Resource".

<URL:http://dotnet.mvps.org/dotnet/code/misc/#PlaySound>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
25 Apr 2006 3:13 PM
alcurb
Why are certain terms bracketed in the sample code for which you
provided a link?  The terms in question are  [Stop] and [Loop].

Alcurb
Author
25 Apr 2006 3:29 PM
Sid Price
Because "Stop" and "Loop" are reserved words, by enclosing them in "[]" they
may be used as user identifiers.

Sid.
Show quoteHide quote
"alcurb" <a**@dolby.com> wrote in message
news:1145977993.294106.146780@j33g2000cwa.googlegroups.com...
> Why are certain terms bracketed in the sample code for which you
> provided a link?  The terms in question are  [Stop] and [Loop].
>
> Alcurb
>