GetWindowText doesn't return the text

This is a discussion on GetWindowText doesn't return the text within the Windows Programming forums, part of the Platform Specific Boards category; I used to have dial and it was a forum error that made me push it 2 times. I have ...

  1. #16
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I used to have dial and it was a forum error that made me push it 2 times.

    I have yet to fix my program... even though the answer to my problem is now clear.

  2. #17
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Quote Originally Posted by Cool-August
    bithub, it would be more compatible if it was:
    Code:
    char text[10];
    Instead of:
    Code:
    TCHAR text[10];
    No, it wouldn't. Since he is using the windows API, then the only compatibility he needs to worry about is across windows systems. In that case TCHAR is compatible with both unicode and non-unicode builds whereas char is compatible with non-unicode builds only. If you are programming with the Windows API, it is always a good idea to make your code unicode compliant with the tchar.h routines and macros.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. is it ok like that?
    By ExDHaos in forum C++ Programming
    Replies: 8
    Last Post: 05-23-2009, 09:02 AM
  2. How can I make this code more elegant?
    By ejohns85 in forum C++ Programming
    Replies: 3
    Last Post: 04-02-2009, 08:55 AM
  3. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  4. Memory leak - need help finding
    By ChadJohnson in forum C++ Programming
    Replies: 8
    Last Post: 04-06-2005, 07:26 PM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM

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