• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1794
  • Last Modified:

c++ linux API reference

Hi,

When developing for windows, I can find the win32 API docs at msdn.com. Where do you go to find equivalent information for linux based systems? For example, I just want to display a message box, in windows I'd do:

    #include <windows.h>
    MessageBox(0, "hi", "hi", 0);

there must be an equivalent in linux, where do I go to find that out (besides posting every question here at EE)

Thanks
0
DJ_AM_Juicebox
Asked:
DJ_AM_Juicebox
1 Solution
 
gabbadarCommented:
The GTK+ Reference is probably where you're looking if you're programming under GNOME.
http://www.gtk.org/api/

I've just started looking into programming under Linux using GTK.
0
 
itsmeandnobodyelseCommented:
>>>> find equivalent information for linux based systems?
Note, while Windows has an integarted GUI, LINUX is a UNIX system which can be operated with or without a desktop. And it can have different desktops, . g. GNOME and KDE. So, you would need to read the docs and the API's of the desktop you are using.

Regards, Alex
0
 
Jose ParrotGraphics ExpertCommented:
Hi,

I'm not sure if MUST exist a similar programming simplicity... Probably, it SHOULD exist...
As pointed by itsmeandnobodyelse, Windows (from 95 version) is Operating System and Graphics User Interface in an integrated set (before W95, it was DOS + Windows 3.1). Linux is the O.S. (like Unix) and additional Xfree (like XWindow) is the GUI. Both Linux and Xfree aren't integrated as Windows is.

 Direct programming in Xfree86 is a very hard task (this is what you are facing now). The solution is to use a higher level library, like KDE (for Unix we use Motif). Even such library is, in some cases, more complicated than Windows programming.

In compliment to the previous comments, let me suggest a look at
http://quality.kde.org/develop/howto/howtohack.php

Jose
0
 
jkrCommented:
Well, there is an "API reference", e.g. http://www.gnugeneration.com/mirrors/kernel-api/book1.html ("The Linux Kernel API"). Yet, as already noted, "Linux"  itself is only the kernel, without any graphical subsystem. IIRC you are using wxWidgets for that purpose, so the above along with http://www.wxwidgets.org/manuals/stable/wx_contents.html pretty much is where to look at.
0
 
Anthony2000Commented:
The following tools can be used for Linux to display a message box. There is additional help on other functions as well.

using GTK:

http://www.gtk.org/api/2.6/gtk/GtkMessageDialog.html

using Qt:

http://doc.trolltech.com/4.3/qmessagebox.html

using wxWidgets:

http://www.wxwidgets.org/manuals/stable/wx_wxmessagedialog.html#wxmessagedialog

Good site with an explanation about window managers and the X Window system:
http://xwinman.org/intro.php

Window managers:
http://xwinman.org/
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now