Original Post
I have two classes called MyClass1 and MyClass2
in MyClass2 to I have a private memeber: "MyClass1 *test;"
I have a function in MyClass2 that looks like this:
int MyClass2::newThinger() {
this.test = new MyClass2("hello");
return 1;
}
error C2228: left of '.test' must have class/struct/union type
whats wrong?
[edited by - Nullio on March 19, 2003 12:13:38 AM]
[edited by - Nullio on March 19, 2003 12:14:06 AM]
[edited by - Nullio on March 19, 2003 12:22:16 AM]