TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James Laine
from: Daniel Lynes
date: 1996-07-19 13:37:12
subject: Resource Compliler

Hello James!

18 Jul 96 18:09, James Laine wrote to All:

 JL> I now want to start adding resources.  I checked the Watcom C/C++
 JL> v10.6 help files, and came across OS/2 resource compiler
 JL> statement and keywords. One example was similar to the following

Wow!  You mean 10.6 actually includes OS/2 programming documentation?  What a
novelty!  Or, are you referring to the OS/2 2.0 Toolkit online docs?

#include "app.h"

 JL> MENU MAIN PRELOAD
 JL> BEGIN
 JL>     MENUITEM "One", 100
 JL>     SUBMENU "Two...", 101
 JL>     BEGIN
 JL>         MENUITEM "2.5", 200
 JL>         MENUITEM "2.7", 201
 JL>     END
 JL> END

/*
 * File:  App.H
*/
#define MAIN 300

 JL> 1stpmapp.rc(3) RC: error - String not allowed for resource ID
 JL> 'MEN'. RC: 1 error(s) detected

This is because you never told the resource compiler what value to assign to
the constant 'MAIN'.

Daniel

internet:  dbl{at}eznet.ca

... A mind is a terrible thing to lay off.

--- GoldED/2 2.42.G0615+
* Origin: Enitharmon/2 Beta Home Site 604-527-0195 (1:153/8028)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 153/8028 831 800 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.