Is it possible to spawn a class member function into a thread?

I try to do that, but get this error: error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *)(void *)'

For example, can we have something like this

class C
{
public:
DWORD m_threadId;
HANDLE m_hThread;
DWORD WINAPI ThreadFunction(LPVOID lparam);
void f1(void);
}

void C::f1(void){
m_hThread = CreateThread(NULL, NULL, ThreadFunction, NULL,
NULL, &m_threadId);
}



TIA.