Thread: GUI for difference between two dates

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    8

    GUI for difference between two dates

    hi guys, i need help for making a GUI for difference between two dates
    i write the code in c but i failed to make GUI in c++ but that what i need help to make .
    (NOTE: I use visual studio 2010)
    thanks in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    What are you taking about?

    You have a GUI with two text fields for your two dates.
    You press "OK" and you call the function you've written in C.

    The GUI part should be covered in any tutorial covering the GUI toolkit of your choice.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    8
    sorry but i don't understand what you mean

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    First step: find a GUI toolkit. There are lots out there. For example, Qt.
    Then design a window, two text boxes and a button.
    Refer to the documentation for your GUI toolkit on how to execute code when the user presses the button.
    In the code for when the user presses the button, call your function.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dates and C++
    By mmiskand in forum C++ Programming
    Replies: 17
    Last Post: 10-17-2008, 02:04 PM
  2. Difference between dates
    By DaniiChris in forum C Programming
    Replies: 11
    Last Post: 08-18-2008, 08:18 AM
  3. Getting the difference between dates
    By Leftos in forum C Programming
    Replies: 7
    Last Post: 01-20-2008, 12:49 AM
  4. difference between dates
    By rahulsk1947 in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2007, 09:57 AM
  5. Using dates in Pro*C
    By clancyPC in forum C Programming
    Replies: 0
    Last Post: 08-17-2006, 06:37 AM