Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resource compiler - which is not buggy?

6 views
Skip to first unread message

cbockem

unread,
Apr 20, 2007, 8:09:07 AM4/20/07
to
I am currently playing with a little PM application, trying whatever
can be done with the menus (like putting bitmaps in, checkmarks,
submenus etc.), and I am getting the impression that there is
something wrong with that rc.exe I am using!

Symptom:

For a quite "normal" construct like

MENUITEM "test...", ID..., MIS_TEXT | MIS_SUBMENU
BEGIN
MENUITEM ...
END
MENUITEM "next...", ID..., MIS_TEXT
etc.

I am getting sometimes garbled text in some of the menu lines! I can
make some changes, drop items, add others etc., and I either get rid
of the garbled parts, or they change, or they go to another place in
the menu. Normally there is no obvious relationship between where I do
a change and where the garbled parts appear!

Now I see that I have 3 versions of rc.exe on my computer (in the
order they appear in the PATH):

1999-06-30 15:27:28 88'045 0 _____A C:\ECS\BIN\RC.EXE
2000-11-29 09:25:56 88'041 0 _____A C:\OS2\RC.EXE
1995-05-31 12:04:18 101'435 0 _____A E:\IBMCPP30\BIN
\RC.EXE

I can switch to another one of the three, but that doesn't seem to
help so far, but I remember discussions about some versions of rc.exe
being buggy and others not, but I do NOT remember what the problem was
and which versions would be the best!

Any helpful hints anybody?

Gregg Young

unread,
Apr 20, 2007, 2:47:09 PM4/20/07
to

The RC.exe that is recommended for building the mozilla browsers is
01/30/03 04:39pm 727590 .ra.. rc.exe reports itself as version
5.000.007 and is found in \toolkit\os2tk45\bin on CD 2 of eCS 1.2r
(maybe earlier versions too). If you don't have eCS try
ftp://ftp.software.ibm.com/ps/products/warpzilla/os2tk40rc.zip which is
a link from the mozilla build instructions. HTH

Gregg

Frank Beythien

unread,
Apr 20, 2007, 2:40:34 PM4/20/07
to
On Fri, 20 Apr 2007 12:09:07 UTC cbockem <cbo...@yahoo.de> wrote:

> I am currently playing with a little PM application, trying whatever
> can be done with the menus (like putting bitmaps in, checkmarks,
> submenus etc.), and I am getting the impression that there is
> something wrong with that rc.exe I am using!
>
> Symptom:
>
> For a quite "normal" construct like
>
> MENUITEM "test...", ID..., MIS_TEXT | MIS_SUBMENU
> BEGIN
> MENUITEM ...
> END
> MENUITEM "next...", ID..., MIS_TEXT
> etc.
>
> I am getting sometimes garbled text in some of the menu lines! I can
> make some changes, drop items, add others etc., and I either get rid

> Any helpful hints anybody?

You could try wrc.exe from open watcom. I can mail it if you don't
want to DL 62Mb for the full OW.

CU/2
--
Frank Beythien fBeythien AT gmx.de

cbockem

unread,
Apr 21, 2007, 4:20:22 AM4/21/07
to
On 20 Apr., 20:47, Gregg Young <y...@qwest.net> wrote:

> The RC.exe that is recommended for building the mozilla browsers is
> 01/30/03 04:39pm 727590 .ra.. rc.exe reports itself as version
> 5.000.007 and is found in \toolkit\os2tk45\bin on CD 2 of eCS 1.2r

> (maybe earlier versions too). If you don't have eCS tryftp://ftp.software.ibm.com/ps/products/warpzilla/os2tk40rc.zipwhich is


> a link from the mozilla build instructions. HTH

Great! Thank you!

Although I am using eCS 1.2 I was too lazy for searching the CD ;-)
and simply followed the download link - and indeed the menus are now
looking just as they were supposed to look like!

But really strange: I did a lot of PM programming during the last 15
years and never really encountered myself the bugs of rc.exe that I
read about in the forums, so I never really bothered about the right
version to use...

Greetings,
Cornelis

Bill Silverstein

unread,
Jul 19, 2007, 9:38:59 PM7/19/07
to
On 21 Apr 2007 01:20:22 -0700, cbockem wrote:

>
>But really strange: I did a lot of PM programming during the last 15
>years and never really encountered myself the bugs of rc.exe that I
>read about in the forums, so I never really bothered about the right
>version to use...
>

You wouldn't think about that and Nmake either. I ran into that problem
when I ported the printer drivers from CSet to VAC++. Months after I
left that group, I was called by them to ask where that work was because
they could not make it work. Thay had to get the Nmake patches.


Bill Silverstein

unread,
May 27, 2009, 1:01:35 AM5/27/09
to
On Fri, 20 Apr 2007 12:47:09 -0600, Gregg Young wrote:

>cbockem wrote:
>> I am currently playing with a little PM application, trying whatever
>

>The RC.exe that is recommended for building the mozilla browsers is
>01/30/03 04:39pm 727590 .ra.. rc.exe reports itself as version
>5.000.007 and is found in \toolkit\os2tk45\bin on CD 2 of eCS 1.2r
>(maybe earlier versions too). If you don't have eCS try
>ftp://ftp.software.ibm.com/ps/products/warpzilla/os2tk40rc.zip which is
>a link from the mozilla build instructions. HTH
>
>Gregg
>

I tried that one, but it gives a problem with using the following:
ACCELTABLE ID_SETTINGDLG
{
VK_F1, HELP_BUTTON, VIRTUALKEY
VK_ESC, SC_CLOSE, VIRTUALKEY | SYSCOMMAND
"D", DEFAULT_BUTTON, ALT
"U", UNDO_BUTTON, ALT
"H", HELP_BUTTON, ALT
"d", DEFAULT_BUTTON, ALT
"u", UNDO_BUTTON, ALT
"h", HELP_BUTTON, ALT
}


It does not like the "| SYSCOMMAND"
The older verions work fine, except it does not like adding the
resource on a dll, when using a fat32 partition.


RC :(pmlsetin.rc:489:48):Error 2142:Parameter key-value must be string or numeri
c. [|]
RC :(pmlsetin.rc:489:59):Error 4005:Invalid parameter encountered, delimeter exp
ected [SYSCOMMAND]


Any ideas?

Steven Levine

unread,
May 27, 2009, 2:44:13 AM5/27/09
to
In <dImdnaOsReT5SoHX...@speakeasy.net>, on 05/26/2009
at 11:01 PM, Bill Silverstein <scraped...@sorehands.com> said:

Hi Bill,

I've always expected this

VK_ESC, SC_CLOSE, VIRTUALKEY | SYSCOMMAND

to be written as

VK_ESC, SC_CLOSE, VIRTUALKEY, SYSCOMMAND

which matches the syntax definition in pmref.inf which is

ACCELTABLE
id memoption

BEGIN


,

, , acceloption
keyval cmd

> The older verions work fine, except it does not like adding the
>resource on a dll, when using a fat32 partition.

Other versions may accept the |, but this is undocumented and definitely
does not match the docs. ISTR the comma is optional on some versions of
rc.

You might consider using OpenWatcom's wrc. It has the benefit of being a
supported app.


Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <ste...@earthlink.bogus.net>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
--------------------------------------------------------------------------------------------

0 new messages