[comp.windows.x] Trouble with Resources

belle@skipper.dfrf.nasa.gov (Steve Belle) (02/09/91)

Does anyone have any insight on details regarding the following problem
I am having with the resource database?

Using the O'Reilly books as a reference, I am trying to utilize the 
resource database in an application.  The command line is parsed first,
then the display is opened. Then the appropriate application defaults file,
the server defaults, and the command line resources are read and merged 
together in that order.  I am pretty sure I end up with a correct database;
I have used XrmPutFileDatabase to dump the merged database to a file, and
it seems to contain the appropriate entries.  The file contains what I expect
it to.  When I use XrmGetResource to retrieve an entry from the data base, 
it always returns FALSE.  I have checked several times to be sure that I am 
trying to retrieve a resource that is really in the database.  I must be 
missing some detail.  Anyone have any suggestions?

Steve Belle
PRC
belle@skipper.dfrf.nasa.gov