CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2002
    Posts
    5

    Question Problem: cpp does not recognise others Form edit-box

    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

  2. #2
    Join Date
    Jun 2002
    Posts
    1,417
    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.

  3. #3
    Join Date
    Sep 2002
    Posts
    5
    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

  4. #4
    Join Date
    Jun 2002
    Posts
    1,417
    When you delete a cpp or .h from the project, it does not delete the source file(s). You have to do that yourself.

  5. #5
    Join Date
    Sep 2002
    Posts
    5
    Ok, thank you very much!

    Greetz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured