GUI for difference between two dates

This is a discussion on GUI for difference between two dates within the C++ Programming forums, part of the General Programming Boards category; hi guys, i need help for making a GUI for difference between two dates i write the code in c ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,630
    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-19-2008, 11:49 PM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21