another slight problem

This is a discussion on another slight problem within the Windows Programming forums, part of the Platform Specific Boards category; Ive declared another TCHAR variable this time 15 bytes in size. The user inputs information into a dialog, which I ...

  1. #1
    sissoko
    Guest

    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
    Posts
    1,584
    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
    Location
    near a computer
    Posts
    3,855
    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, 08:55 AM
  2. Replies: 5
    Last Post: 11-07-2005, 10:34 PM
  3. Subclassing edit control - slight problem
    By Shag in forum Windows Programming
    Replies: 3
    Last Post: 11-02-2002, 11:33 PM
  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

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