Programming C In Windows - 2 questions

free web hosting
Free Web Hosting > Computers & Tech > Programming

Programming C In Windows - 2 questions

FirefoxRocks
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.

Reply

docduke
QUOTE(FirefoxRocks @ Feb 2 2008, 12:58 PM) *
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! cool.gif


 

 

 


Reply

FirefoxRocks
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++?

Reply

docduke
QUOTE(FirefoxRocks @ Feb 2 2008, 02:38 PM) *
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.

Reply

yordan
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".

Reply

docduke
QUOTE(yordan @ Feb 3 2008, 05:00 AM) *
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.

Reply

yordan
QUOTE
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.

Reply

rockarolla
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.


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : programming, c, windows, 2, questions

  1. Upgrade Windows Service Pack Issues
    (5)
  2. Remove Windows Update Uninstall Information
    Sick of seeing $NtUninstall in Windows Folder, I am! (4)
    Below is a script I created to remove those space taking $NtUninstall Folders from the Windows
    Directory as well as the entries in the Registry for them. It's not much space saving but at
    least it gets rid of the unnecessary scrolling that comes with it when looking in the Windows
    Folder. Tested on Windows XP , Requires WScript and VBScript (which would be with most Windows
    OS) $NtUninstall Folders contain the uninstall information required if you chose to remove a
    Windows Updated Component, I don't know anyone who needs to do this, and usually if y....
  3. Some Php Questions
    (8)
    I was in my village for the last two days so i did alot of PHP scripts and came up with some
    questions: 1-When a PHP script is run, the server is doing something. So am I using bandwidth in
    the process? If so how much, lets assume the script gets a row from a database and display it. Does
    the script use bandwidth equal to the size of the data desplayed or the data the script went through
    whiel searching the database. 2-I want a script to run every X minutes, how do i do that? 3-In a
    script, i call some data from the database having a same trait and put them in a table....
  4. Image Problems With Windows 2000
    (8)
    Hi, since a while i got two problems related with images files in my Windows 2000 machine, both are
    very closely related because them happen with Windows Explorer and with Internet Explorer 6. The
    problems are: Windows Explorer Thumbnails Preview : The problem with this option of the View menu
    is that it doesn't show any thumbnail preview of any image in my hole computer, i verify this
    problem for jpg, jpeg, gif, png or bmp files, but it works fine and generate the thumbnail previews
    for html files. IE Save as... dialog and JPG files extension : Every time that....
  5. How To Copy File & Folders From Linux To Windows?.
    (12)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  6. Windows Xp Sp3 Available
    (16)
    Windows XP Service Pack 3 is now officially available through Windows Update and the Microsoft
    Download Centre. Link for Windows XP Service Pack 3 Network Installation Package for IT
    Professionals and Developers It is not suggested you download the standalone package unless you
    are updating multiple computers. I have personally tested the final version of Service Pack 3 on my
    Windows XP SP2 virtual machine, and I have not encountered any problems yet with it. Interestingly
    enough, I haven't seen any speed improvements that reviews have been talking about.....
  7. Xampp And Wampp Questions
    (7)
    I have a couple of questions: 1) Now if I download XAMPP or WAMPP and install them can I make my
    own servers to host my own website on? 2)Now if you can host a server that way how do you do it to
    get it on the internet? 3) How do you set up all the databases and that?....
  8. Help! Usb Flash Drive
    windows doesn't recognize it anymore... (10)
    So my uncle asks me to format his computer and install windows and stuff. So I did like I do with my
    PC every six months. No problems at all, everything was working. So I proceeded to install drivers,
    which I had already on my flash drive, a 2GB PNY flash drive. But, for some reason, the usb drive
    was not recognized by windows XP on my uncle's PC, and I tried again on another port. No luck. I
    was thinking maybe all the usb ports were broken or something... but then I went to my desktop and
    proceeded to connect my usb drive to burn the drivers on to a CD. And what&#....
  9. Windows Or Mac?
    (29)
    Which do you prefer? Windows or Mac?....
  10. Windows Live Messenger
    (11)
    Hello, I have been using Windows Live Messenger for a couple of months now (I don't think older
    version ca be used anymore, and for some reason I couldn't anyway, can't remember exactly,
    anyway....), and have always on a daily basis (many times a day), having issue with it logging me
    out randomly (with no signs of hiccups or issue with my internet connection) or it just plain
    exiting on me completely out of nowhere, with no signs or symptoms of it occurring and I don't
    know until I actually proceed to hover over a minimized conversation or the task tray ....
  11. How Do I Create Static Routes In Windows Xp?
    (11)
    Here's my setup: My PC connects to my Internet facing wireless router via a USB-pluggable
    wireless NIC, the IP address of which is 192.168.1.2 (netmask 255.255.255.0). The IP address of my
    router's LAN port is 192.168.1.1. The NIC which is embedded in the motherboard has remained
    disabled so far. Everything works OK, but I recently got a hold of a crossover cable, and I started
    using it to connect a laptop to my PC. So I enabled the embedded NIC on the PC and gave it an IP
    address of 192.168.2.2 (netmask 255.255.255.0, default gateway 192.168.2.2). The laptop&....
  12. New Windows Live Messenger 8.5 Beta!
    For Vista and XP users only (13)
    hey, i would just like to tell you guys that the new and LEGAL copy of Windows Live Messenger 8.5
    beta is now available from Microsoft at http://ideas.live.com The new slick theme is made to
    'blend in' to Windows Vista's Glass effects throughout the Operating System. I have
    downloaded it and It does match Windows Vista perfectly. I reccommend everyone to download WLM 8.5
    beta if you got XP or especially Windows Vista /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" />....
  13. Will Using Fdisk Corrupt Windows Partition?
    (9)
    I remember doing this before in the past with a DOS partition. It wasn't working properly, so
    the office tech told me to use fdisk and delete that DOS partition. Then recreate it. To my surprise
    Windows still worked after that. I always thought that fdisk would corrupt the Windows partition
    somehow since it was a destructive partitioning tool. So I have always used Partition Magic instead
    for my partitioning needs. If I install Linux on a separate partition and decide to get rid of it
    later using fdisk, Windows will still be intact right? From my understanding now,....
  14. Programming In Glut (lesson 1)
    The first of a series of tutorials on how to use the OpenGL Utility To (3)
    Hello, I'm starting a series on how to program in OpenGL using the OpenGL Utility Toolkit,
    a.k.a. GLUT. I chose GLUT because it is quick and easy to write, and very easy to learn. In this
    tutorial I am going to teach you how to create a basic window which we will build off of in later
    tutorials. Throughout the tutorial I will leave notes to let you know what each command does, and
    how you can modify it to fit your needs. Everything in the code section can be copied and pasted
    into your compiler and it should compile proporly, if it does not, please let me know, a....
  15. Windows Internet Explorer 7 Vs. Mozilla Firefox 2
    (28)
    Well, both browser just came out within the span of 2 weeks, and I got the chance to review them. I
    posted my review on my website. http://www.ae-net.cjb.net/index.php?a=topic&t=8 Feel free to
    comment, rant. However, please don't flame unless you have to. xboxrulz....
  16. Deleting A Corrupt File
    Cannot delete a corrupt file on Windows XP... (25)
    I was upgrading some software and came across a corrupt file that halted the installation process. I
    went to see what was wrong with the file, and failed to manually delete it. I tried moving
    (cut&paste) it to another location, and the installation succeeded. However, the file is still on my
    drive, taking up a KB of space. I know that's not a lot, but where am I supposed to put it? In a
    folder created especially for all the corrupt files on my computer? /blink.gif"
    style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> I've heard
    something....
  17. Just Got A New Laptop....
    a couple questions (13)
    I bought an Acer Aspire 5601WLMI for $850 after rebates. It has an AMD Turion 64 X2 ML-50
    processor, 2 GB DDR2 ram, 120GB hard drive, 15.4 in brightview widescreen, etc. I did alot of
    online research before i bought it, as I don't like Acers, and would have gone for a Compaq or
    Dell had i had more time. But it seemed to get pretty high reviews, and on notebookreview.com it was
    in the top 5. But has anyone here had any experience with one of them, and can shed more light on
    whether i made myself a deal or a lemon? Also, say i was to try out Linux on it, would i ....
  18. Windows Live Search
    The future of MSN Search (14)
    I have used Windows Live Search for that contest that MSN hosted a few months ago (can't
    remember if it was a year). It works if you have the BETTER keywords to search with, otherwise it
    doesn't work that well. It is my preferred ALTERNATE search engine (my favourite is
    Google+Yahoo). MSN Search doesn't work that well. It doesn't come up with that many results
    and Yahoo! generally searches better than it. I don't use MSN Search anymore. After all,
    Windows Live Search will replace it! /smile.gif" style="vertical-align:middle" emoid=":)" borde....
  19. Can You Create A Folder Name "con"
    Is it possible to create a folder named "CON" in Windows? (17)
    I tried in both Windows XP Home and Professional. If you try to make a folder named "CON" Windows XP
    renames it back to what it was. So creating a new folder with the name "CON" just renames it to "New
    Folder". The bug seems like a variable that got treated as a string or vice-versa. Trying to create
    the folder from a cmd prompt failed with an error "The directory name is invalid.". This also works
    when you try to create a file called "CON", or "CON.". ".CON" shows up the way it should. Somewhere
    I found the reason that CON stands for CONsole which is device name but....
  20. The Best Version Of Windows
    (42)
    With all the different flavors of Windows, what in your opinion is the best version? Win95, Win98,
    Win98SE, WinNT, Win2000, WinXP, Vista, and even remember Windows 3.1? I hear that hardcore Windows
    users are in love with Win98SE for some reason? Is there any justification behind this? I mean
    this is a version of Windows that is definitely not supported anymore, but is the security and
    stability of this version that much better where it doesn't need support? Personally, I really
    like Win2000 over any other version. It seems more secure and stable, and I'm pr....
  21. Using Same Serial # On Multiple Copies Of Windows
    (15)
    I heard it is possible to run more than one computers on the same serial of Windows. I also heard
    that it can be registered and use all the functions of any legal copy of Windows. Lets say I have 4
    computers in my house and don't want to pay $800 for windows on each one if I build them
    all myself. I can just put same serial on all of them. But I heard this is also breaking the EULA
    agreement with Microsoft which redeems this being illegal or improper use of windows. I would like
    to hear your sides on this, or the whole truth behind this. If so does this mean som....
  22. How To Play Mac Games On Windows And Vice-versa
    (28)
    i used to have a windows computer and now that i have a mac i cant play a lot of games online and a
    lot of computer games u buy arent compatible for it. i was just wondering what computer is as safe
    as a mac but still uses windows....
  23. A Note To All Illegal Windows Xp Owners
    (47)
    Hi, all illegal Windows XP users WILL NOT be able to download any updates or software from Microsoft
    website. Automatic Updates will no longer work, because Microsoft will have to ask for your Software
    identification.....
  24. Runuo Programming
    (4)
    there is someone that know programming on runuo and ultima online? I was trying to make so that he
    could himself be created account through web but the script that I have for the game server (that he
    update the account stored in database and synchronize them with the database) gives an error to me:
    ( if someone is even than it helps me, it says to me that it does not find the data origin (i think
    the database that i specified) given that I have specified: ( perhaps mistake driver -. -....
  25. Anyone Know Of Any Good Image Editing Software?
    for windows. (23)
    so.. does anyone know of any good image editing software? something similar to photoshop i guess or
    psp? that has a lot of options and things to do ......
  26. Mp3 Questions
    a question for a mp3 beginner like me (14)
    Hello... You all like to download MP3 's online right? Well, hmmm... i love to download them
    and burn them in a cd but there's some unanswered questions roaving in my mind. Example, I
    have many duplicates of one song with different file names, well, I want to remove those duplicate
    ones ... how? And MP3 is compressed right? Is there a way to uncompress those compressed
    sound so that I will really do unlock the wonderful sound of the audio?....
  27. Sharing Files In Windows Xp Home
    I always get an "access denied mesage" (15)
    when trying to access another computer's shared files on my home network i recieve an error
    message " is not accessable. You might not have permission to use this network resource. Contact
    the administrator of this server to find out if you have access permissions. Access denied" anyone
    know why I am getting this message?....
  28. Windows Not Recognizing Ipod
    (20)
    OK, I'm running Windows XP and my iPod is not detected when I plug it in. The only things that
    I could guess are wrong are that I recently had a trojan, known as BackDoor-AWI and that my router
    flaked out and I have no internet on the computer in question now. I'm not sure what happened,
    but for some reason, McAfee is telling me that it's all screwed up on startup. So it's not
    even running anymore. My computer does recognize USB keys, but will not see my iPod for some
    reason. Any ideas?....
  29. Microsoft Service Pack 2 Cd (free)
    Windows XP (17)
    For those who missed my post: http://www.astahost.com/index.php?act=ST&f...t=10#entry27941 For
    those who want a free CD copy of Service Pack 2 with Advanced Security Technologies (popup blocker
    and firewall) follow this link: http://www.microsoft.com/windowsxp/downloa...us/default.mspx I
    ordered mine about 3 months ago, received it in a within a week. ....
  30. What Is The Use Of Service Packs For Windows?
    (15)
    Hi there. Who of you has service packs and what are they good for? Does it worth the huuuuuge
    download (keep in mind I have a 56k connection)? I said I wasn't going to update it but I got a
    video editing program and it asks me to have Service Pack 1 installed and that made me reconsider my
    choice... Thanks.....

    1. Looking for programming, c, windows, 2, questions

Searching Video's for programming, c, windows, 2, questions
advertisement




Programming C In Windows - 2 questions



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE