Lutzee 0 Newbie Poster

Hi, it's me again lol...

Ok i havea windows forms application. I have several classes with pointers to other classes eg:

class1
{

public:
function(void);
class2* c2;
};



class1::function
{


c2->variable = 3;

return 0;
}

I think form1 is an object, maybe this is cos i'm a newbie...
I can declare a pointer to the form1 class but when i try to access a data member intellisense says " -> or . is used incorrectly" and it says expecting class union structure..blah blah. I need to be able to access the variables and functions in form1.h from this class can anyone help me?

Thanks :)