ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux doesn't support the win32 api by itself. You can run windows programs in linux using wine. I believe it is also possible to link directly with the wine libs so your users don't need to install wine, but I haven't tried this yet.
If your program uses MFC/Visual C++ I would recommend porting it to linux using wxWidgets.
From what you're saying I understand that you are looking for the "x.org api" to rewrite your program for linux. If that is the case then I would suggest using one of the toolkits instead of using x directly because they are much easier to use. If you're programming in c you can use GTK, if you use c++ I would suggest wxWidgets or the KDE libs.
Originally posted by IDoIt that's what im searching for "linux x window api" [/B]
Converting a program to linux will very much depend on how you built the program.
Did you use a RAD IDE to build the windows or you built them coding? In what language did you write the program?
Suposing you coded the window and are writing in c++ the answer is: The inner windowing API for linux is X11, but it is not adequate for most gui programs, you should use a toolkit around it. Another API that makes things a lot easier and goes above X11. There are 2 main such gui APIs for linux: GTK and QT.
For a multiplatform program you could use an API that will go above GTK (and then above Win32 when compiling for windows). Some options are: wxWidgets for c++ and Lazarus LCL for pascal.
i have made a program on windows using C++ that can retrieve any GUI running application properties (like : the window handler , window childs , containing controls , size , position ,.....) and many else
spy++ (Microsoft) is an example of it
i want to make simillar one on linux
i don't want to build a GUI window , i want to use a current running application ( what ever this app was ) to get what i want from it
I hear X11 is a real pain to program for. You might want to figure out what window manager you want it to run under (I think KDE is the most used/easiest to use/most Windows-like GUI). For that you can use Qt (http://doc.trolltech.com/3.3/index.html) which is an excellent user interface library. I think it might be more what you are looking for if you are a Win32 programmer.
ta0kira
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.