Using TextPad with RC files

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Peter Wone
Posts: 12
Joined: Tue Mar 11, 2003 5:52 am
Location: Brisbane, Australia
Contact:

Using TextPad with RC files

Post 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
Last edited by Peter Wone on Tue Mar 25, 2003 11:34 pm, edited 2 times in total.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Re: Using TextPad with RC files

Post by jeffy »

Submit your idea as a "tip" to TextPad support. Check out the tips page, under the "support" toolbar item.
Post Reply