CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2003
    Posts
    58

    Question A stupid question

    Hello.

    I am really new at linux (6 days) and did not install everything on my computer, like a C++ compiler yet. So I could not try this. So please forgive me this question.

    Does these function/classes work with Linux too?

    #include <windows.h>
    WndProc()
    CreateWindowEx()

    M.Donner

  2. #2
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720
    No.

  3. #3
    Join Date
    Oct 2003
    Posts
    58
    Thanks!

    Can anybody tell me, where I can find a tutorial or hints, how to create a windows with Unix, with C++ and prepare it for OpenGL?

    I have found many for Windows but none for Linux.

    M. Donner

  4. #4
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720
    try this:
    link
    You can use KDevelop environment, if it is not installed, you can install the package from distributive disk, or search by google.
    Or use command line 'c++'. See manuals for more details, I'm not very experienced in Linux Programming.

  5. #5
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647
    Linux is considered to be just a kernel. The kernel doesn't provide any direct GUI api.
    There's another layer of abstraction - the X-server. Then another ones are GUI environments (KDE, Gnome, etc.). For programming GUI, U should usually use some toolkit: Gtk/Gtk+, Tcl/Tc, ... .
    U can find a lot of information about specified toolkits via the Web.
    About OpenGL too. A request like "Linux OpenGL programming" gives many links with google.com.

    I'm not familiar with GUI programming. In addition, U can ask on linuxquestions.net to get more details about specified toolkits.
    Last edited by dimm_coder; February 20th, 2004 at 11:15 AM.
    "UNIX is simple; it just takes a genius to understand its simplicity!"

  6. #6
    Join Date
    Jun 2003
    Location
    Gjøvik, Norway
    Posts
    204
    Go visit Nehe. He has versions of his OpenGL tutorials for just about any platform/language you can dream of. I'm sure you will find what you're after there.

  7. #7
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  8. #8
    Join Date
    Jul 2003
    Location
    Guayama, P.R.
    Posts
    41
    You can also use X-Windows to work with GUI's on linux (I think this one is based on C) and the one that I think it's used more often is called QT (this one is based on C++).
    I haven't seen many tutorials about Qt online but I know there are a few Qt communities.
    But frankly, if you want to really get into it, I suggest you get a book because *** you will soon see, Linux is quite different. (that's not a bad thing! :P ).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured