Bootstrap

C++ 静态成员函数调用非静态成员函数方法

#include <stdio.h>
#include <windows.h>
class Class;
typedef struct  
{
	Class *pClass;
	int x;
	int y;
}ParaNode;

class  Class
{
public:
	int i;
	void Seti(int index)
	{
		i=index;
	}
	bool SaneCommandSASTest(int x,int y)
	{
	  printf("sum: x+y = %d\n",x+y);
	  srand((unsigned)time(NULL));
	  int rate=rand()%5;
	  if(rate<2)
	  {
		  while(1);
	  }
	  else if (rate == 2)
	  {
		  return false;
	  } 
	  else
	  {
		  return true;
	  }
	  
	}
	static DWORD WINAPI SendEraseCommandThread( LPVOID lpParameter );
	int ExecuteCommand(int x,int y);
	int Print();
private:
    bool m_sendCommandResult;
	bool m_getProcessResult;
	int m_processResult;

};

DWORD WINAPI Class::SendEraseCommandThread( LPVOID lpParameter )
{
	ParaNode  *paranode = (ParaNode*)lpParameter;
	printf("Enter into ThreadProc\n");
	bool m_sendCommandResult;
	bool m_getProcessResult;
	int m_processResult;
	paranode->pClass->m
;