I'm having trouble getting this situation to work:

I've got a gui that will take the user's input, and pass along the string to a function in another class, called Command(String^ str)

The command will process the input, and print off some statements using a function in the GUI's class called EnterText(String^ str)

What I'm having trouble with is, I seem to need to include command.h in my form to access Command(), but I need to have Form1.h in my command class to access the gui type.

I looked at some of the forward declaration information, but it seems that I wouldn't be able to access the functions of a class using this.

What would you guys recommend as a solution?

Bumping this up for a possible reply

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.