View Full Version : C in Linux VS C in Windows
Lybel
08-18-2003, 02:51 AM
Hi all,
I'm currently working with C in Linux and for some reason I want to Jump to use C in Windows. My question is is there any major differents bettween the two OS in C? Any great links for C in Windows?
Thanks in advance.
Lybel
Hi all,
I'm currently working with C in Linux and for some reason I want to Jump to use C in Windows. My question is is there any major differents bettween the two OS in C? Any great links for C in Windows?
Thanks in advance.
Lybel
Hi Lybel,
In fact there are lots of differences. Not only on the language itself, but mainly on the APIs and standard libraries involved.
One of the main differences is that, unlike UNIX, in Windows you usually work with a GUI interface, and if you use the Windows API and plain old C, you will have to use a lot of external structures and functions to get the most basic thing done.
You can start by going to the Codeguru site (http://www.codeguru.com) where you'll find lots of references for Visual C++ and all the other Visual Studio tools.
Best regards
aukahi
04-15-2004, 06:15 AM
if you are to write pure ANSI/ISO C code, there should be no difference.
if you are to write POSIX codes, then windows is not entirely POSIX compliant.
felix
04-23-2004, 07:31 PM
Cool thread!!!
1 - MSVC++ 6 was must used, i noted that at .NET the C# is the most used, have more books, more sources, etc. It is better (more power) then MSVC++ ?? Why ?
2 - I'm interested in learn MS Visual C++ 6 too, i have a basic idea of C programming under Linux. I don't know classes, but i'm interested in learn to create graphical programs for windows (Screens, buttons, grids, etc) and i never had contact with it. I want a book to learn programming under windows in graphic env with examples and a kind of step-by-step WITHOUT many teorically explanation, much about classes, etc. Someone can suggest a book like that for me ?
Thkz.
Regards.
rocos
06-09-2004, 03:41 PM
I think, if you code without API, it may be similar. If use API, it must be many difference!
i3839
06-10-2004, 12:31 PM
Felix, it's probably not the best idea ever to learn the WinAPI now, because it will go away when Longhorn comes, it's more work to learn than it's worth it, and it's Windows only. I know almost nothing about it, but I thought it was a C API. No one uses that API directly now, they all seem use the .NET wrappers/interface/whateveritis.
If you want to learn GUI programming then I recommend learning GTK, Qt or FLTK because those are cross-platform. Qt and FLTK are C++, GTK is C (although object oriented).
http://gtk.org LGPL
http://www.trolltech.com/products/qt/index.html GPL
http://www.fltk.org LGPL + static linking allowed
felix
06-16-2004, 02:59 PM
Hi,
thkz a lot, i will think in study this GTK. ;-)
Regards.
Felix
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.