Thread: Dif. between Win. and *nix

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    224

    Dif. between Win. and *nix

    does anyone know a site or document that show the difference for making a program using windows and *nix.

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    they both use totally different API sets. Windows uses the Win32 API which you can read all about at msdn.microsoft.com and linux uses mostly standard calls unless you're programming for X in which case there are toolkits galore with all of their own functions. On the graphical end of things, there is nothing to compare. they're totally different.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    224
    so to learn how to program on *nix would be like learning a new language?

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    well no. You can get by on unix with just standard library stuff for the most part if you want. It's the graphical environment stuff (XLib stuff) that you'll have to learn. Toolkits out there include:

    GTK
    Motif
    QT
    X Intrinsics (On which other toolkits are based)
    etc....

    Pick one, but yes it is sorta like learning another language. If you learned Win32 then you have an bit of an understanding of the kind of thing you would need to learn.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    88
    i dont see how it would be like a different language. it's not like pointer's are handled differently or it takes ten lines to declare an integer.

    making a program is the same. write the source code, compile, link, and run. it's the function calls and libraries that are different.

    basic UNIX libraries are used for most things. these are pretty standardised so you shouldn't have trouble with them

    different X toolkits exist. i dont do gfx/gui's of any kind so i cant really help here.

    and of course: if you go with linux or free/dragonfly/open/net BSD you'll have a lot more freedom and a lot more good open source code to work with and the tools are free as well. (free meaning open source)

    have fun.

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    although you can use OpenGL on both Windows and Linux, its the only cross-platform library I know of.
    "Christ died for our sins. Dare we make his martyrdom meaningless by not committing them?"

  7. #7
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    Well, you could use cross platform wrappers like wxWindows, I heard.

    As far as I understand it, wxWindows wraps the API (win32, X, ...) so you can access them all with the same functions/objects (don't even know if it's C or C++).
    [code]

    your code here....

    [/code]

  8. #8
    zsaniK Kinasz's Avatar
    Join Date
    Jan 2003
    Posts
    222
    SDL is cross platform as well, not as good as coding ogl but its alot easier
    "Assumptions are the mother of all **** ups!"

  9. #9
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    GTK has a cross platform version for the Gimp it is supposed to be getting more popular for the windows platform soon. I don't know though

  10. #10
    Registered User
    Join Date
    Nov 2002
    Posts
    46
    allegro and sdl could be good cross-platform libraries.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. help with this
    By tyrantil in forum C Programming
    Replies: 18
    Last Post: 01-30-2005, 04:53 PM
  3. removing WIN 2000
    By DMaxJ in forum Tech Board
    Replies: 3
    Last Post: 10-15-2002, 09:25 AM
  4. Boolean, what does it return?
    By Rizage in forum C++ Programming
    Replies: 6
    Last Post: 08-15-2002, 03:37 AM
  5. Can I get this to loop back?
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 05-07-2002, 03:34 AM