XForms: resources and Xforms

Jeff Pierce (piercej@preferred.com)
Wed, 13 Aug 1997 15:59:33 -0500

To subscribers of the xforms list from Jeff Pierce <piercej@preferred.com> :

I need some quick info on getting resources into an Xforms proggram. I
have read the manual, and understand most of it, except for one thing.

In the FL_RESOURCE structure there is an entry for 'resource class', the
second member. What exactly do I put here? The manual has confused me(
not hard to do).

Here is what I want to do. I have an application that uses a serial
port, /dev/cua1, which is hard coded in the program. I wish to make this
device name a resource, say kenwood.xform.device in .Xresources.

In my program I put

FL_resource res[] =
{"device", <class name>, FL_STRING, &device, "/dev/cua1", 15};

In this case what do I put in the <class name> spot?

Jeff Pierce
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/