Link to home
Start Free TrialLog in
Avatar of renam00
renam00

asked on

Wav file inside a DLL ??

Hi,

I'm using BC++Builder 4.0.
I would like to have a dll with :
  - A Wav file INSIDE it
  - A function to save it to disk

The best thing  would be a function like:
SaveWavTo("C:\tmp\MyWav.wav");

Is it possible ? How should I do ? Any code example ?

Thanks to all,

renam00
ASKER CERTIFIED SOLUTION
Avatar of alexo
alexo
Flag of Antarctica image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of renam00
renam00

ASKER

Sounds good...
any detail to the way to put the wav into a raw binary data (I'am not use to work with Dll)
With MSVC you can "import" a WAV file into the resource editor.  I guess the BCB resource editor has something similar.

It doesn't matter if the resorce resides in a DLL or in an EXE file.

Two remarks:

1) You should use a custom resource type (e.g., "WAVE") instead of what I suggested earlier.

2) Windows-specific questions (such as this) are better asked in the windows programming area, not C++.