I want to include a small Ding.wav with my .exe so that all i ship is one file MyFile.exe. It can then play the .wav cos its included in it somehow.
I believe what I need is a Resource file.
This will be my first resource file ( so be gentle! ) and I have tried to get to grips with it.
Over the last few weeks i have read Petzold Chap 10, Poffs on resources, rc.hlp, This forum and I still dont get it.
When I run Rc.exe it launches and quits. I think it needs a script. but ill be damned if i can figure out all the steps. I know that MyFile.exe will have a #Include "myresource.res" or .h or .ddt or .something, and i have my Ding.Wav. But just how to get from A to B ... i give up.
the rc.hlp says:
1. Create individual resource files for cursors, icons, bitmaps, dialog boxes, and fonts. To do this, you can use Microsoft Image Editor and Dialog Editor (IMAGEDIT.EXE and DLGEDIT.EXE) and Microsoft Windows Font Editor (FONTEDIT.EXE).
2. Create a resource-definition file (script) that describes all the resources used by the application.
3. Compile the script into a resource (.RES) file with RC.
4. Link the compiled resource files into the application's executable file.
So i have step 1 allready done - i got my Ding.wav
Step 4 I think I can do.
Step 3 how do get Rc.exe to do that?
Step 2: now what the heck is this?
it says:
· Preprocessing directives, which instruct RC to perform actions on the script before compiling it. Directives can also assign values to names.
· Statements, which name and describe resources.
OK so Then, I think I need:
#include (filename)
The #include directive causes Resource Compiler to process the file specified in the filename parameter. This file should be a header file that defines the constants used in the resource-definition file.
So now I need a script, executed by rc.exe that wants a statement describing a header file that describes the file i want included??? - Jeeze could this be any harder?
Could some kind person pretend im a 4yr old and tell me what to do pls.
------------------
Kind Regards
Mike
I believe what I need is a Resource file.
This will be my first resource file ( so be gentle! ) and I have tried to get to grips with it.
Over the last few weeks i have read Petzold Chap 10, Poffs on resources, rc.hlp, This forum and I still dont get it.
When I run Rc.exe it launches and quits. I think it needs a script. but ill be damned if i can figure out all the steps. I know that MyFile.exe will have a #Include "myresource.res" or .h or .ddt or .something, and i have my Ding.Wav. But just how to get from A to B ... i give up.
the rc.hlp says:
1. Create individual resource files for cursors, icons, bitmaps, dialog boxes, and fonts. To do this, you can use Microsoft Image Editor and Dialog Editor (IMAGEDIT.EXE and DLGEDIT.EXE) and Microsoft Windows Font Editor (FONTEDIT.EXE).
2. Create a resource-definition file (script) that describes all the resources used by the application.
3. Compile the script into a resource (.RES) file with RC.
4. Link the compiled resource files into the application's executable file.
So i have step 1 allready done - i got my Ding.wav
Step 4 I think I can do.
Step 3 how do get Rc.exe to do that?
Step 2: now what the heck is this?
it says:
· Preprocessing directives, which instruct RC to perform actions on the script before compiling it. Directives can also assign values to names.
· Statements, which name and describe resources.
OK so Then, I think I need:
#include (filename)
The #include directive causes Resource Compiler to process the file specified in the filename parameter. This file should be a header file that defines the constants used in the resource-definition file.
So now I need a script, executed by rc.exe that wants a statement describing a header file that describes the file i want included??? - Jeeze could this be any harder?
Could some kind person pretend im a 4yr old and tell me what to do pls.
------------------
Kind Regards
Mike
Comment