Jump to content
Excelsior Forums

Anyone familiar with Xlib and Motif?

Recommended Posts

Can anyone help me in getting a clearer understanding of how strings work in the X11 and Xm libraries?  In general, when I'm working with example Motif programs in C I have pretty good luck, except when it comes to having to use certain types of strings.

For example, I have to go through a couple of extra steps to be able to use checks of argv^[0]

Another example, I can't figure out how to use XmStringCreateLocalized, I have to use other options, like XmStringCreate, or XmStringCreateLtoR

Any pointers or links to resources would be appreciated.



Share this post

Link to post
Share on other sites

OK, the first one I think I figured out, and involves my confusion over when C is using pointers (I think)

In the C code, it is:

  printf ("usage: %s bitmap-file\n", argv[0])
  exit (1);

it seems to work when I use:

    printf("usage: %s bitmap-file\n", argv^[0]^ );

I'm still having some major problems though.  I can get things to work in Motif 1.2 terms, but I'm having more difficulty trying to do things the "right" way in Motif 2.1/2.2 terms.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now