It doesn't know what i is:
Code:
void setProperties(int j)
{
    i = j; 
}
Did you mean:
Code:
void MyClass::setInt(int j)
{
    i = j; 
}
- petter