home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / advocacy / 2809 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.6 KB  |  75 lines

  1. Newsgroups: comp.os.ms-windows.advocacy
  2. Path: sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!vccnw01.its.rpi.edu!johnsd2
  3. From: johnsd2@vccnw01.its.rpi.edu.its1 (Daniel Norman Johnson)
  4. Subject: Re: Macintosh bigots
  5. Message-ID: <#hz18dq@rpi.edu>
  6. Nntp-Posting-Host: vccnw01.its.rpi.edu
  7. Reply-To: johnsd2@vccnw01.its.rpi.edu.its1
  8. Organization: Sun Microsystems, Inc.
  9. References: <strobl.722183341@gmd.de>
  10. Date: Fri, 20 Nov 1992 01:54:31 GMT
  11. Lines: 62
  12.  
  13. In article 722183341@gmd.de, strobl@gmd.de (Wolfgang Strobl) writes:
  14. >In <xly150p@rpi.edu> johnsd2@jec316.its.rpi.edu.its1 (Daniel Norman Johnson) writes:
  15.  
  16. [deletia- monitors]
  17. >
  18. >>[deletia- resedit]
  19. >>>>
  20. >>>>>Modifying resources can be done using the standard file system
  21. >>>>>interface. Just read that part of a program file, which contains
  22. >>>>>the resources and interpret it yourself.
  23. >>>
  24. >>>>But you need to interpret the format..
  25. >>>
  26. >>>True. Just like a compiler has to do it.
  27. >
  28. >>Doesn't the linker do that?
  29. >
  30. >No, on Windows the resource compiler does it. I.e. it generates
  31. >that format, and attaches the output to the executable, in
  32. >two separate steps. On Windows/NT, the linker implements the
  33. >second step, i.e. the attaching.
  34.  
  35. Oh, ok- I thought you meant "a compiler" as in "a C compiler".
  36.  
  37. [deletia- resources]
  38.  
  39. >>>>Its used for a lot more than that. Virtually anything you
  40. >>>>want can be stored there. Its very handy. Things like
  41. >>>>control definitions, color tables, all the strings in your
  42. >>>>program (officialy, you are supposed to do that), any internal
  43. >>>>data you want to keep there.
  44. >>>
  45. >>>There is a string table in the collection of the standard
  46. >>>Windows resource components, too, and its use is recommended,
  47. >>>likewise. It's of course part of the user interface.
  48. >
  49. >>Hmm? All strings are in the ui? Anyway, the point was just that
  50. >>you can (and do) put all sorts of rediculous things in there,
  51. >>just cuz it easier.
  52. >
  53. >The strings are ui business. The main purpose of the string
  54. >table is not to have any language dependency in the code, so that
  55. >you can translate your application into a foreign language
  56. >just by translating the resource script, and without looking
  57. >at the source code. A well written app not even has to be
  58. >recompiled to create a foreign version.
  59.  
  60. I know about this.
  61.  
  62. >But this string table should'nt be modified at runtime or (mis-)
  63. >used for other purposes, IMHO. 
  64.  
  65. Why ever not? If its a handy place to stick some other strings, why
  66. not do so?
  67.  
  68.  
  69. ---
  70.             - Dan Johnson
  71. And God said "Jeeze, this is dull"... and it *WAS* dull. Genesis 0:0
  72.  
  73. These opinions have had all identifiying marks removed, and are untraceable.
  74. You'll never know whose they are.
  75.