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
Printable View
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
You should define it yourself in your resource.h file.
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.
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.
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?
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.