[comp.windows.x] How do specify Application Class

bill@polygen.uucp (Bill Poitras) (10/02/90)

I am using X11R4 under SunOs 4.1.  In a program that uses Xlib only, I 
call XrmGetResource.  I have already initialized the resource manager stuff
and made a call to get the string data base.  What do I specify for the name
and class for a value like Word*speller*geometry.  'Word' is the general
group of applications, 'speller' is the actual application, and geometry, well
you know...  I have tryed using the above string for the str_name, and both
the above string and NULL for the str_class.  I still don't get the proper
value returned.  Any help would greatly be appreciated.


+-----------------+---------------------------+-----------------------------+
| Bill Poitras    | Polygen Corporation       | {princeton mit-eddie        |
|     (bill)      | Waltham, MA USA           |  bu sunne}!polygen!bill     |
|                 |                           | bill@polygen.com            |
+-----------------+---------------------------+-----------------------------+

converse@EXPO.LCS.MIT.EDU (10/05/90)

> I am using X11R4 under SunOs 4.1.  In a program that uses Xlib only, I 
> call XrmGetResource.  

> What do I specify for the name
> and class for a value like Word*speller*geometry.  'Word' is the general
> group of applications, 'speller' is the actual application, and geometry, well
> you know...  

To understand the specification of the second and third parameters
of XrmGetResource(), you can read section 10.11 "Using the Resource
Manager" of the Xlib reference manual.  

I think that you are asking: "How do I specify the fully qualified name
and class of my application's geometry resource?  The application class
name is 'Word' and the application instance name is 'speller'.  The 
instance name of the geometry resource is 'geometry'."

The likely answer is that the name is "speller.geometry" and the class
is "Word.Geometry".  


> I have tryed using the above string for the str_name, and both
> the above string and NULL for the str_class.  I still don't get the proper
> value returned.  

If there is no matching resource specification in the resource database, 
the proper return value is NULL.


Donna Converse