I'm a noob in doing C++ programming, but I'm trying to modify some existing code to add functionality, etc.
I'm using Borland C++ Builder v5 on Win2k.
It seems that quite often I'll modify or create a form, make some code to go with it that uses some static initial testing values (i.e. the objects on the form will be commented out) for values to be taken from the form to get the logic working, and then enable the code to take values from the form. But on compiling the quasi-final version, I'll end up with the .h file for the unit not having the proper prototypes (or whatever the proper term is) for the newly enabled objects on the form.
E.g.
// Calculate Proctor-Sherwood Normalization factor from entered value.
double NORM1; // overflows 32-bit INT if m is too large.
//\tdouble m = 25; // fix for initial testing
double m = StrToInt(Form1->M1->Text); // use double to control type conversion.
---
[C++ Error]spectrometer13.cpp(541): E2316 'M1' is not a member of 'TForm1'
It is too (it's a TEdit edit box)- it's just not listed in spectrometer13.h
Shouldn't doing a Build All take care of things like that? How does one force the .h file to be rebuilt? Do I have to edit it manually? If I delete the .h file, will it be rebuilt properly?
Thanks a bunch.
Cheers,
Scott.