|
From: | bj |
Subject: | Re: Fw: [Tinycc-devel] windows resources, playsound, xp theme (just resending to the group) |
Date: | Tue, 03 Oct 2006 17:46:08 +0800 |
User-agent: | Opera Mail/9.01 (Win32) |
ok, so if i do this: 1. open a .wav file using notepad 2. copy the contents of the .wav file from notepad 3. create a char *soundstring=""; in my c file; 4. paste the contents of the .wav file between the quotes in char *soundstring=""; like so char *soundstring="IOBD820Ṳ鷏..";//or something like that 5. escape the characters in *soundstring6. and use fopen ("file.wav", "wb") to write the characters of *soundstring to file.wav
this will work?if this can work can it work with a text file like a manifest file? MinGW can't seem to write a manifest file from its resource manifest file in .rc
fwrite is how to write bytes to a file, right?what's its syntax again?sorry thanks in advance.On Tue, 03 Oct 2006 07:45:53 +0800, Jakob Eriksson <address@hidden> wrote:
bj wrote:Another question though is can tcc write raw bytes to a file like soundbytes , you know the characters you see when you open a sound file in notepad? If yes, can anyone here tell me how?Just open a file with fopen ("file.wav", "wb"); // Jakob
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Prev in Thread] | Current Thread | [Next in Thread] |