Thread: WIN32 API and Linux... *shudder

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    58

    WIN32 API and Linux... *shudder

    Hi, I want to write a cross platform program for windows and Linux, I love Linux but am stuck with windows on such a common basis, and so I want to make my program use the WIN32 API so that I can make toolboxes and file searching and all that good nonsense, however I have no idea how WIN32 programming would be transcribed into Linux programming. Is there an easy way to do this? Or am I going to have to use Wine or something like that to run my program without extensive reprogramming of the GUI functions for Linux?

    E.G. is there a call for Linux equal to the main WinProc function for WIN32 programming? I probably sound like a newbie when it comes to Linux programming and that's not too far off unfortunately... everyone starts somewhere and that somewhere for me is here, so any help would really be appreciated!

  2. #2
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    .Net and mono ?

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    1. Use a cross platform toolkit like Qt, GTK, or wxWidgets
    2. Use wine under POSIX and program in Win32
    3. Use X11 under both and get an X11 server for windows

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I'm guessing that, unless you already know the WIN32 API and are going to leverage that knowledge, you should instead learn a cross-platform windowing thing such as wxWidgets, or GTK+, or some others that I can't think of right now.

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    58
    Thank you Ive decided to learn wxWidget programming because of you guys.
    There seems to be so many benifits to it, all except the horribly large executable filesize... Eh but you win some, you loose some.

    Looks like I have a lot to learn... like allways

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. platform specific API or C standard API
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 01:32 AM
  2. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  3. Linux API functions
    By Micko in forum Linux Programming
    Replies: 3
    Last Post: 07-01-2004, 03:39 PM
  4. Linux API
    By c++.prog.newbie in forum Linux Programming
    Replies: 10
    Last Post: 02-25-2004, 04:44 AM
  5. Something similar to WIn32 API ?
    By Nutshell in forum Linux Programming
    Replies: 13
    Last Post: 02-12-2002, 05:33 PM