[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Keytable and event queue



don't really have the answer to your question but i too encountered this
error message. the reason, in my case was that i had not include the file
that had the structure defiend (struct dirent)
try including this also #include<X11/Xutil.h>

r /\ |-| |_| |_
 ==============================================================
What a man has to go through for a piece of ass in this world is highly
ridiculous
==============================================================

----- Original Message -----
From: "Karthika Sivaramakrishnan" <karthika212@xxxxxxxxxxxxxx>
To: "LIP" <linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, February 07, 2001 7:25 PM
Subject: [LIP] Keytable and event queue


> Hello!
> What does "keytable" mean in Linux? What is the bit vector of the keyboard
and what is its significance? How can I associate a keypress with the actual
value?
>
> Also, I would like to get the following clarified. I have written a
program in C to find the length of the event queue using Xlib.
>
> #include <X11/Xlib.h>
> #include <stdio.h>
> #include <X11/Xos.h>
>
> int main()
> {
> char *displayname = NULL;
> Display *dpy;
>
> dpy = XOpenDisplay (displayname);
>     if (!dpy)
> {
> printf("Error opening display.\n");
> exit(1);
>   }
> printf("%d",dpy->qlen);
> XCloseDisplay(dpy);
> return 0;
> }
>
> The program does not compile and I get the error "Dereferencing pointer to
incomplete type" in the printf statement. Am I not allowed access to the
event queue? What is the mistake in the above program?
>
> Waiting for a reply,
> -Karthika
>
> _____________________________________________________
> Chat with your friends as soon as they come online. Get Rediff Bol at
> http://bol.rediff.com
>
>
>
>
>
> ---------------------------------------------
> The mailing list archives are available at
> http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers
>