Re:How to include a .wav file in a .exe file
Peter,
Create a plain text file with the extension .RC (for this discussion,
we'll call it MYRES.RC).
In the text file, add a line for each of the resources you want
included, in the format RESOURCENAME RESOURCETYPE FILENAME:
MYWAV WAV MySoundFile.Wav
MYBMP BMP MyBitmapFile.Bmp
Make sure the resourcename is all upper-case.
From the command line (DOS prompt), run the Borland Resource
compiler (BRCC.EXE for Delphi 1, BRCC32 for Delphi 2/3). It's
located in your Delphi\Bin directory:
BRCC32 MYRES.RC
This creates MYRES.RES in the current directory.
Then add {$R MYRES.RES} to a single unit in your project (probably
best in the main form). If you add this to more than one file,
you'll get 'Duplicate Resource' errors.
Now you have the resources in your EXE as soon as you build or
run your EXE.
HTH
Ken
--
Ken White
kwh...@westelcom.com
Clipper Functions for Delphi
http://members.aol.com/clipfunc/
Quote
Peter Jacobsen wrote:
> How do I include a .wav or a big Bitmap or the like in the compiled .exe
> file ?
> Peter :->