Click to See Complete Forum and Search --> : Problem: cpp does not recognise others Form edit-box
Clouddancer
September 17th, 2002, 05:48 AM
Hello!
I added(imported) a working cpp to my existing program.
know i need the value fo an edit box of the imported Form in another Form.
When compiling there is the Error "Edit1 is not Member of TFormX".
Is there something special i have to do that this error disappears? All declarations have been made!
Thanks for any help
stober
September 17th, 2002, 06:20 AM
A couple ways to correct that:
1. Change TFormX to be of the same class in which Edit1 is declared and add all its methods to that class.
2. Pass Edit1 as a parameter to whatever function that is using it.
Clouddancer
September 17th, 2002, 06:46 AM
Hi!
Thanks for you answer. But i've found out what the problem was.
The imported cpp had the same name as on old cpp from the project which i already had removed....but not deleted. So everything was referencing a cpp-file with the same name, but other elements, which then were not reconized. Now i renamed the complete stuff.
By the way, when i remove a cpp from a project, it still is there. What si the right way to delete it so that it doesn't cause any problems?
Thanks
stober
September 17th, 2002, 06:48 AM
When you delete a cpp or .h from the project, it does not delete the source file(s). You have to do that yourself.
Clouddancer
September 17th, 2002, 07:07 AM
Ok, thank you very much!
Greetz
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.