skid wrote:
i get the picture and i think i understand but could someone please give me an idea howto build the structure for Display for example, guess one way would be to put extern Display * dpy in a c file and link, but i want to learn but i dont understand. i'm not asking for anyone to write me an entire program here, only minor guidance, and explain in a language i can understand or begin to understand. i used to do dos assembly years ago, i'm sorry i have blown my brains on dope...
http://www.x.org/releases/current/doc/x ... tion_Setupwhat am i supposed to to with this, a snippet is all i ask.
You are not asking how to use Xlib or how to do XWindow programming. You are asking how to use any external C function or library from assembler (in this case how to build the assembler equivalent of a C struct). This is not really the level that this forum is aimed at.
I repeat my previous advice - before being so ambitious learn and practise the basics with simpler C libraries. Once you understand them you can return to this more advanced project. There are plenty of web sites and/or books that will provide help with these basics of assembler programming.