Page 1 of 1

Using TextPad with RC files

Posted: Thu Mar 13, 2003 5:48 am
by Peter Wone
Borland supplies a command line resource compiler BRCC32.EXE with Delphi and C++Builder.

RC files are just text files, so TextPad is ideal for preparing them. You can install BRCC32 in the Tools menu and use TextPad as a resource workshop. These were the settings on my system:

Command:

Code: Select all

C:\Program Files\Borland\Delphi7\Bin\brcc32.exe
Parameters:

Code: Select all

$File 
Initial folder:

Code: Select all

$FileDir 
Regular expression to match output:

Code: Select all

Error \([^ ]+\) \([0-9]+\) \([0-9]+\).*
Here's a sample RC file (I named it TEST.RC). Note that the resource IDs are implicit and ordinal.

Code: Select all

#define B24B	BANG24BIT
#define B8B	BANG8BIT
#define WINDOWMOVE_CURSOR_3D_GOLD "C:\WINNT\Cursors\3dgmove.cur"

B8B BITMAP "bang-8bit.bmp"
B24B BITMAP "bang-24bit.bmp"

MOVE_CURSOR WINDOWMOVE_CURSOR_3D_GOLD
The captured output looks like this when I leave out the end quote on line 5:

Code: Select all

Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.

Error TEST.RC 5 25: Unterminated string or hexstring constant

Tool completed with exit code 20018

Re: Using TextPad with RC files

Posted: Sat Mar 22, 2003 10:49 am
by jeffy
Submit your idea as a "tip" to TextPad support. Check out the tips page, under the "support" toolbar item.