Your question is not clear.i understand that you are trying no access a nonstatic member variable in your static function.something like as shown below.
class A
{
int m_A;
static void Test()
{
m_A = 0;
}
}
If this is what you are trying to do, It is not possible.
You have to make your data member also static.No otherway to do this
class A
{
static int m_A;
static void Test()
{
m_A = 0;
}
};