Option 1 using the IDE (Delphi 2007 or higher):
You can click the "Project" menu, then select "Resources ...", into which you can upload any file. For your purpose this will be RC_DATA.
Option 2 without IDE
If you do not have the above option, you will need to use BRCC32 (the Borland resource compiler) to create the .RES file from the RC file, which you then link to your Application. To link resource files without using the IDE, try the following:
Let's say, for example, we want to add a couple of DLL files, and the name of the DLL files is MyLib1.dll and MyLib2.dll to add this open notepad, and enter the following:
MYLIB1 RCDATA ".. \ MyLib1.dll"
MYLIB2 RCDATA ".. \ MyLib2.dll"
Make sure the .. \ xxx.dll paths are correct, so obviously you need to edit this.
Now you need to save it as a .rc file, so File> Save As .. (make sure that the drop-down filter is all the files.) And name it MyResources.rc. Now you need to use the Resource Compiler to generate the Res file using this console command:
BRCC32 MyResources.RC
You can write this command using the command line, Start> Run> cmd.exe, otherwise you can find the BRCC32.exe file in the bin folder of your Delphi setup and drag and drop the MyResource.RC file onto.
This will create a file called MyResources.RES, which you can include in the main Delphi form of your application, for example:
{$R *.dfm} {$R MyResources.res}
you can extract resources using something like this:
procedure ExtractResource(ResName: String; Filename: String); var ResStream: TResourceStream; begin ResStream:= TResourceStream.Create(HInstance, ResName, RT_RCDATA); try ResStream.Position:= 0; ResStream.SaveToFile(Filename); finally ResStream.Free; end; end;