definition of IDC_TEXT

This is a discussion on definition of IDC_TEXT within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I have the free borland C++ command line compiler. It's complaining about IDC_TEXT being an undefined symbol. Where ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    351

    definition of IDC_TEXT

    Hi all,

    I have the free borland C++ command line compiler.

    It's complaining about IDC_TEXT being an undefined symbol.

    Where is IDC_TEXT defined?

    I'm want to use it as the nIDDlgItem argument in SetDlgItemText().

    TIA, rotis23

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    You should define it yourself in your resource.h file.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    351
    OK, thanks.

    What could nIDDlgItem be? The MSDN site only gives IDC_TEXT as an example and I don't know what value it is.

  4. #4
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    In your resource editor, it will have assigned a name to the edit or whatever you're changing the text on. Just use that ID instead.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  5. #5
    Registered User
    Join Date
    Aug 2002
    Posts
    351
    Sorry XSquared, I'm using Broland free comannd-line compiler.

    I presume IDC_TEXT is a user-defined ID for the win32 control.

    Any int is ok as long no other control has that id?

    Am I right?

  6. #6
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    It has to be the value that is defined in your resource header file, because that is what's used when the control is created.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 06:16 AM
  4. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM

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