c programming

Discussion in 'Windows Desktop Systems' started by punkandacoke, Nov 6, 2003.

  1. punkandacoke

    punkandacoke eat me

    Messages:
    255
    Location:
    at the end of the rainbow
    This is a basic question so dont get pissed.

    Say I've made a calculator in C. It processes simple distance equations. Now I want to add a gui - grapical user interface. How would I go about doing that? Just really explain the basic's and tell me what I should search for, because I've been looking for about three days. :eek:

    thanks
    :cool:
     
  2. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    you just want text boxes to enter information in for calculation ? or do you want to do something else ?

    just drop a hint as to what you are trying to achieve... perhaps we can post some sample code to help you out in setting up a simple/efficient gui...
     
  3. albybum

    albybum Penguin Rancher

    Messages:
    280
    Location:
    Elizabethton, TN
    You can do what I did and start taking Visual Basic classes.

    :p
     
  4. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    adding a gui to a C application is not something that can be done one two three, youll need to go read a book as there is hardly any tutorials on the web. I am still looking for a book that has what i want. But so far there is none.
     
  5. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    visual c++ may help somewhat I presume...

    I am currently using a borland compiler so I dunno...
     
  6. MdSalih

    MdSalih The Boss

    Messages:
    1,730
    Location:
    Birmingham, UK
    Yeah - would be hard to do a GUI in C... I'm currently using Borland C++ Builder - just started off on it.. learning the basics.. AnsiStrings and stuff... Sazar - you been using it for long? I could do with some help :p

    MdSalih
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    AnsiStrings?

    Anyways, borland C++ builder has a lot of stuff in it that does not comply with the guidelines set for the C++ language. If you want a truly guideline following C++ compiler, try Dev-C++.

    It uses the freely avaible gcc / c++ compiler.
     
  8. Vector_One

    Vector_One Guest

    Or you could just make a quick Java applet out of it. Java isn't all that different from C (more like C++). A simple gui for a small calculator would be pretty easy for you to learn.
     
  9. Sazar

    Sazar F@H - Is it in you? Staff Member Political User Folding Team

    Messages:
    14,905
    Location:
    Between Austin and Tampa
    lol... from the sounds of everything I know about you... you are more advanced than I am with c/c++ :D
     
  10. punkandacoke

    punkandacoke eat me

    Messages:
    255
    Location:
    at the end of the rainbow
    Well, back to Java. Anybody know of some good tutorial sites?
     
  11. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    I know this may seem OT - but GUI wise, consider Delphi.

    I am no expert, but what we are down to here is a thing called an API - your AP (Application Program) is in C and does what you want.... you gotta Interface (hence API) with your GUI. Someone told me Delphi is handy there - now shoot me down in flames (I COULD be wrong here!)
     
  12. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Delphi is an excellent programming language to start off with.