home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19382 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.5 KB

  1. Xref: sparky comp.windows.x:19382 comp.windows.x.motif:7605
  2. Newsgroups: comp.windows.x,comp.windows.x.motif
  3. From: dec@alex.com (Doug Clinton)
  4. Path: sparky!uunet!pipex!demon!woody!dec
  5. Subject: Re: Getting pointer to resource database
  6. Nntp-Posting-Host: woody
  7. Organization: Alex Technologies Ltd
  8. References:  <1992Nov19.153930.14273@elegant.com>
  9. Apparently-To: mail2news@gate.demon.co.uk
  10. Date: Fri, 20 Nov 1992 11:49:43 +0000
  11. Message-ID: <1992Nov20.114943.29402@alex.com>
  12. Sender: usenet@gate.demon.co.uk
  13. Lines: 29
  14.  
  15. In article <1992Nov19.153930.14273@elegant.com>, drk@elegant.com (David King) writes:
  16. |> I need to get a pointer to the resource table used in an
  17. |> application which can be passed to XrmParseCommand().
  18. |> XtDatabase returns the database whereas XrmParseCommand()
  19. |> requires a pointer to it.
  20. |> 
  21.  
  22. XrmParseCommand() only requires a pointer so that it can pass back a
  23. newly created database if the database you pass in contains NULL.
  24.  
  25. The database returned from XtDatabase() should not be NULL so
  26. XrmParseCommand() should not create a new one.
  27.  
  28. The following should work ok:
  29.  
  30. db = XtDatabase(display);
  31. XrmParseCommand(&db, ...);
  32.  
  33.  
  34. -- 
  35. ---------------------------------------------------------------
  36. Doug Clinton                Alex Technologies Ltd
  37. dec@alex.com                CP House,
  38.                     97-107 Uxbridge Road,
  39.                     Ealing, London, W5 5TL
  40. ---------------------------------------------------------------
  41. "Just because someone famous said it doesn't make it true."
  42.                 - Douglas E. Clinton
  43. ---------------------------------------------------------------
  44.