Thread: another slight problem

  1. #1

    another slight problem

    Ive declared another TCHAR variable this time 15 bytes in size. The user inputs information into a dialog, which I would like to check. How can I check whether or not the user has entered any data?

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Just check if the TCHAR array is empty. Or you might want to use GetWindowTextLength if the data is from a window.
    1978 Silver Anniversary Corvette

  3. #3
    train spotter
    Join Date
    Aug 2001
    near a computer
    Or use in the callback

    case ID_EDIT:
    if (EN_CHANGE == HIWORD(wParam))//will only continue if text has been entered / removed.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Slight problem with socket reading!!!
    By bobthebullet990 in forum C Programming
    Replies: 5
    Last Post: 02-15-2006, 09:55 AM
  2. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  3. Subclassing edit control - slight problem
    By Shag in forum Windows Programming
    Replies: 3
    Last Post: 11-03-2002, 12:33 AM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM