home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:19382 comp.windows.x.motif:7605
- Newsgroups: comp.windows.x,comp.windows.x.motif
- From: dec@alex.com (Doug Clinton)
- Path: sparky!uunet!pipex!demon!woody!dec
- Subject: Re: Getting pointer to resource database
- Nntp-Posting-Host: woody
- Organization: Alex Technologies Ltd
- References: <1992Nov19.153930.14273@elegant.com>
- Apparently-To: mail2news@gate.demon.co.uk
- Date: Fri, 20 Nov 1992 11:49:43 +0000
- Message-ID: <1992Nov20.114943.29402@alex.com>
- Sender: usenet@gate.demon.co.uk
- Lines: 29
-
- In article <1992Nov19.153930.14273@elegant.com>, drk@elegant.com (David King) writes:
- |> I need to get a pointer to the resource table used in an
- |> application which can be passed to XrmParseCommand().
- |> XtDatabase returns the database whereas XrmParseCommand()
- |> requires a pointer to it.
- |>
-
- XrmParseCommand() only requires a pointer so that it can pass back a
- newly created database if the database you pass in contains NULL.
-
- The database returned from XtDatabase() should not be NULL so
- XrmParseCommand() should not create a new one.
-
- The following should work ok:
-
- db = XtDatabase(display);
- XrmParseCommand(&db, ...);
-
-
- --
- ---------------------------------------------------------------
- Doug Clinton Alex Technologies Ltd
- dec@alex.com CP House,
- 97-107 Uxbridge Road,
- Ealing, London, W5 5TL
- ---------------------------------------------------------------
- "Just because someone famous said it doesn't make it true."
- - Douglas E. Clinton
- ---------------------------------------------------------------
-