home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.advocacy
- Path: sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!vccnw01.its.rpi.edu!johnsd2
- From: johnsd2@vccnw01.its.rpi.edu.its1 (Daniel Norman Johnson)
- Subject: Re: Macintosh bigots
- Message-ID: <#hz18dq@rpi.edu>
- Nntp-Posting-Host: vccnw01.its.rpi.edu
- Reply-To: johnsd2@vccnw01.its.rpi.edu.its1
- Organization: Sun Microsystems, Inc.
- References: <strobl.722183341@gmd.de>
- Date: Fri, 20 Nov 1992 01:54:31 GMT
- Lines: 62
-
- In article 722183341@gmd.de, strobl@gmd.de (Wolfgang Strobl) writes:
- >In <xly150p@rpi.edu> johnsd2@jec316.its.rpi.edu.its1 (Daniel Norman Johnson) writes:
-
- [deletia- monitors]
- >
- >>[deletia- resedit]
- >>>>
- >>>>>Modifying resources can be done using the standard file system
- >>>>>interface. Just read that part of a program file, which contains
- >>>>>the resources and interpret it yourself.
- >>>
- >>>>But you need to interpret the format..
- >>>
- >>>True. Just like a compiler has to do it.
- >
- >>Doesn't the linker do that?
- >
- >No, on Windows the resource compiler does it. I.e. it generates
- >that format, and attaches the output to the executable, in
- >two separate steps. On Windows/NT, the linker implements the
- >second step, i.e. the attaching.
-
- Oh, ok- I thought you meant "a compiler" as in "a C compiler".
-
- [deletia- resources]
-
- >>>>Its used for a lot more than that. Virtually anything you
- >>>>want can be stored there. Its very handy. Things like
- >>>>control definitions, color tables, all the strings in your
- >>>>program (officialy, you are supposed to do that), any internal
- >>>>data you want to keep there.
- >>>
- >>>There is a string table in the collection of the standard
- >>>Windows resource components, too, and its use is recommended,
- >>>likewise. It's of course part of the user interface.
- >
- >>Hmm? All strings are in the ui? Anyway, the point was just that
- >>you can (and do) put all sorts of rediculous things in there,
- >>just cuz it easier.
- >
- >The strings are ui business. The main purpose of the string
- >table is not to have any language dependency in the code, so that
- >you can translate your application into a foreign language
- >just by translating the resource script, and without looking
- >at the source code. A well written app not even has to be
- >recompiled to create a foreign version.
-
- I know about this.
-
- >But this string table should'nt be modified at runtime or (mis-)
- >used for other purposes, IMHO.
-
- Why ever not? If its a handy place to stick some other strings, why
- not do so?
-
-
- ---
- - Dan Johnson
- And God said "Jeeze, this is dull"... and it *WAS* dull. Genesis 0:0
-
- These opinions have had all identifiying marks removed, and are untraceable.
- You'll never know whose they are.
-