Thread: Pass value from Form3 to Form2

  1. #16
    Registered User
    Join Date
    Oct 2008
    Yes you are right. I just need to be sure exactly how it works and as you say, you must be able to have an object to pass it to. I wasn´t shure if the formapplication already by default knew about it´s owns form as objects to call.

    So this works fine with the code I tried to set up, it is possible to send 2 Strings to Form22 from Form4 where I #include "Form22.h" to knew about it´s object.

    Now comes the problem when I need to to do the opposite, pass a value from Form22 to Form4.
    Then I could think of just #include "Form4.h" in Form22 but if I do that, the compiler says:

    'mForm22' : undeclared identifier
    left of '->ActivateThis' must point to class/struct/union/generic type

    I have red something about that this is a circular #include, is it possible to do what I try to do in any other way.
    Last edited by franse; 11-07-2008 at 11:11 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pass a List<double>^ to an opening Form
    By franse in forum C++ Programming
    Replies: 4
    Last Post: 01-07-2009, 11:32 AM
  2. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  3. Using MC++ How do you pass a String between forms?
    By Dream Theater in forum Windows Programming
    Replies: 1
    Last Post: 04-30-2005, 06:23 AM
  4. pass be reference versus pass by value
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 08-01-2002, 01:03 PM
  5. Replies: 3
    Last Post: 04-02-2002, 01:39 PM