A little links requested.

A little links requested.

Post by Core Dat » Thu, 02 Oct 1997 04:00:00



I am an experianced linux programmer, and an
experianced user. However, I feel incomplete
because I lack X windows programming
experiance. If anyone has links to any 'tutorials'
or can point me to a place that would give me
a general intro, I would greatly apprecaite it.

I know:
C, C++, Perl, some java, Basic, Pascal

Thanks,

-Core

 
 
 

A little links requested.

Post by Stephen Vinal » Wed, 08 Oct 1997 04:00:00



> I am an experianced linux programmer, and an
> experianced user. However, I feel incomplete
> because I lack X windows programming
> experiance. If anyone has links to any 'tutorials'
> or can point me to a place that would give me
> a general intro, I would greatly apprecaite it.

> I know:
> C, C++, Perl, some java, Basic, Pascal

> Thanks,

> -Core

Here are a few sites I came across when I was looking into X-Windows
programming:-

http://bit.csc.lsu.edu/tutorial/Xnotes/X_lecture.html
http://www.microimages.com/~dwilliss/programming/
http://www.rahul.net/kenton/bib.html
http://tronche.lri.fr:8000/gui/x/xlib-tutorial/

Good luck!
Cheers...

 
 
 

1. Help linking my little Xwindow test program

all,

 I running Slakware 9.0 / KDE 3.1. I don't understand what I'm doing wrong here

gcc -Wall -c -o xTest.o xTest.c
gcc xTest.o -o xTest -lX11

ld cannot find -lX11

Thanks in advance

#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>

main ()
{
        Display *display;
        Window window;
        int screen;
        unsigned long foreground, background;

        /* connect to the X server */
        display = XOpenDisplay ("");

        if (display == NULL)
        {
                fprintf (stderr, "cannot connect to server\n");
                exit (EXIT_FAILURE);
        }

        /* get default screen */
        screen = DefaultScreen (display);

        /* get black and white representation on current screen */
        background = WhitePixel (display, screen);
        foreground = BlackPixel (display, screen);

        /* Create window at (100,50), width 350, height 250, border width
           2, in default root  */
        window = XCreateSimpleWindow (display,
                DefaultRootWindow(display), 100, 50, 350, 250, 2,
                foreground, background);

        if (window == NULL)
        {
                fprintf (stderr, "cannot open window\n");
                exit (EXIT_FAILURE);
        }

        /* pop this window up on the screen */
        XMapRaised (display, window);

        /* flush X request queue to server */
        XFlush (display);
        sleep (5);

        XDestroyWindow(display, window);
        XCloseDisplay (display);

        exit (EXIT_SUCCESS);

2. Where are IP-Addresses for local use only?

3. Ok I'll give a little...but just a little...

4. root file system on nfs

5. Niggling little things and not so little ones with Linux

6. Anybody using Netgear Fast Ethernet kit with RHL 5.1 ?

7. [Fwd: LinuxArchives.com link request]

8. ESDI compatibility

9. Invalid method in request LINK?

10. Request for UNIX Training Links

11. D-Link Ethernet help requested

12. links request.

13. Link Quality Request in PPP