FirefoxRocks 0 Report post Posted February 2, 2008 Ok I usually would use Linux to program because there is a compiler (gcc), but I need to use Windows to program for now because of a few unexplained reasons.I need to find a compiler for Windows that will compile the C language. I have tried Microsoft Visual C++ Express 2008 but I find it to be way too bulky and hard to use. The command-line compiler is similar to gcc I guess, and it creates executable files for Windows, but the compiler in the actual program compiles C++ but not C for some reason. And it will only compile files in projects, not standalone files. In my opinion, this is not such a great product.Where can I find a free C compiler for Windows?Second question: How do you program a GUI? It would be nice to have a GUI to run the program, not just command line stuff. Share this post Link to post Share on other sites
yordan 10 Report post Posted February 2, 2008 the gcc for windows page : https://sourceforge.net/projects/gcw/ Look also here : http://www.delorie.com/djgpp/ and also here : http://gcc.gnu.org/install/binaries.html and of course https://www.google.fr/search?hl=fr&q=%2nload&meta= Share this post Link to post Share on other sites
docduke 0 Report post Posted February 2, 2008 I need to find a compiler for Windows that will compile the C language. ... Second question: How do you program a GUI? It would be nice to have a GUI to run the program, not just command line stuff. Maybe it's time to consider another language. When Kernighan and Ritchie originally developed C in 1978, it was considered functional, but low level. Now, it is the primary alternative to assembly language. Writing a GUI in it is very error-prone. That is why languages like C++ were developed, but they have complex syntax and a number of "gotchas" that make minor errors very hard to find. I do almost all my programming in Python. It is free, open source and exceptionally easy to learn. It is also licensed so that you can develop software and sell it commercially -- it is not GPLed. It has many GUI Frameworks that will run on Windows and Linux as well. Install the appropriate Python compiler and extensions on your favorite system, and the code you develop on one system will run on others. As an illustration of how Python has major advantages, consider the market application TeleChart. It has a "Developer's Kit" which is intended to be accessed from Visual Basic or Visual C++. I am calling it from Python. My program also spawns GUI subwindows using Tkinter and Python megawidgets. Programming a GUI system in Windows (or Linux for that matter) is very complex, because there are literally thousands of system calls, and mastering them is best avoided by using a toolkit that is adapted to your application. Just mastering the toolkit will require days, if not weeks. Hope this helps! Share this post Link to post Share on other sites
FirefoxRocks 0 Report post Posted February 2, 2008 Ok I've heard of Python before but do end-users need to download some software before running the software (something like the .NET Framework)? Also, is it possible to develop FREE software with Python, not just commercial software?As for C++, don't you need to learn C before learning C++? Share this post Link to post Share on other sites
docduke 0 Report post Posted February 3, 2008 Ok I've heard of Python before but do end-users need to download some software before running the software ...? Also, is it possible to develop FREE software with Python, not just commercial software?As for C++, don't you need to learn C before learning C++?Nothing except what comes with the python installer. It is fully functional as a standalone package. (Of course it requires an operating system.) I just took a look at my Python 2.5 installation. It includes several add-ons, and occupies 49.1 MB on my hard drive. The .msi (compressed) installer of Python 2.5 is just 10.2 MB. If you want one that talks with .NET, IronPython is available. As another alternative, if you want it to generate pure Java code, try Jython.Of course, you can develop free software. Most of the apps are. But you are not forced to. Python used to have a lot of testimonials from people in various businesses. I just did a search and found one: Industrial Light and Magic. There were so many more, including Google, that the Python website has buried them. The original inspiration behind Python was Guido van Rossum. Python is so important to Google that they have currently employed him to extend the development of Py 2.5 to Py 3.0, including extensions that matter very much to them.C++ is a "wrapper" for C. Technically, the C++ engine is a macro processor that takes C++ source code as input, and generates C code, which makes use of a lot of functions from libraries that are used specifically to facilitate higher-level operations for which C++ is intended. Share this post Link to post Share on other sites
yordan 10 Report post Posted February 3, 2008 The topic starter post was a question about C programming.And I think that C programming is sometimes a must for serviceability purposes.If you write down a program for somebody else, it can be maintained by any guy who learned C programming at school, and there are lots around the world.So, the first step in a self-training plan should really, in my opinion, starting with C on any hardware you have, Windows if it's your current Operating system.When talking with other people in your profession life, first say "I propose you to start developping the thing programming in C", and then you add "a nice alternative would be using Python but I must warn you that I will be the only guy able to help you for future software evolution". Share this post Link to post Share on other sites
docduke 0 Report post Posted February 3, 2008 The topic starter post was a question about C programming.Point granted. And you provided him with multiple links for compilers, which was his first request. Maybe I should have left it at that... But the initial post continued with "Second question: How do you program a GUI?..." Have you ever tried constructing a GUI in C? I actually have, but the effort didn't last very long. Many too many misunderstood structures, incorrect pointers, and other things that are very difficult to find in C, unless you're using and IDE with a debugger, and I haven't found one of those that doesn't cost real money. Have you found a good IDE C system? Your link to DJGPP looks like a possibility, but I've never seen DJGPP before. Is it usable for GUI development? Another possible choice for C is MinGW. I haven't used it for a decade, but it turned up in the google search you posted, and it certainly has a lot of development behind it. Share this post Link to post Share on other sites
yordan 10 Report post Posted February 3, 2008 Maybe I should have left it at that...No, no, please no. And, yes, I muss confess, I just wanted to have fun with polemics. However, your way of thinking is very interesting, I thing it's the best way, looking at the future and looking if things are useful instead of seeing if they are used.and, no, I did not test the C compilers by myself, because I am currently working under AIX so I use gcc or the manufacter's C compiler. Share this post Link to post Share on other sites
rockarolla 0 Report post Posted February 5, 2008 Well under windows the best is to use the old BCC (Borland) C and C++ compiler...I still have a copy of it - it is compact and proved. Share this post Link to post Share on other sites
tek3D 0 Report post Posted December 15, 2008 I used Microsoft Visual C++ 2005 and had no problem with it, it created a project for you. Besides, you can program GUI application easily with MFC. Share this post Link to post Share on other sites
magiccode91405241511 0 Report post Posted December 18, 2008 Actually, visual C++ 2008 basically is used much like gcc or similar products. You will have to add `extern "C"` declare statement or name all code file with the extension .c such as string.c. For instance, #ifdef __cplusplusextern "C" {void printchar();void printchar(){ printf("I'am printchar");}} /* extern "C" */#endif /* __cplusplus */ When it is time to complier the code files. You will notice that the visual studio program group has an item call visual c++ 2008 command prompt. This prompt will define all system enviroment variables such as lib, include ... etc so that the compiler will found all c include files like stdio.h ... etc. About the GUI programming. You may try WTL (Windows Template Library 8.0) or Wxwidget. --- Blueray Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 15, 2010 How do you program a GUI?Programming C In WindowsReplying to FirefoxRocksSuggest looking at the full command language. If it is a constant set of commands you want, set up a command file and double click it.Look at: http://commandwindows.com/Replying to FirefoxRocks-reply by StanB Share this post Link to post Share on other sites
iGuest 3 Report post Posted July 9, 2011 In .Net a window can be created just by a click.But I'm too havin such a curiosity to about the development of windows programming under command line interface in those days.Eventhough it is difficult and error prone , many guys are having eagerness to achieve it.And also , I just want to know about flat files used as back-end instead of todays powerful database systems.They developed those things with lots of questions.Now I would like to develop em with answers to those questions.As a student of computer science,I have to know about it.And I b'live dat by tracking-back to d evolution of windows , we may get more experiance or skills in programming.Help me to study this. Share this post Link to post Share on other sites
iGuest 3 Report post Posted September 21, 2011 how to use win32 APIProgramming C In WindowsWhere to write c program using win32 API, how to compile and execute. -reply by hajeera Share this post Link to post Share on other sites