static DWORD WINAPI threadFunc(LPVOID lpparam)
{
return NULL;
}
int CEventInvoker::m_threadCreate()
{
DWORD dwThreadId;
HANDLE hThread;
hThread = CreateThread(
NULL, // no security attributes
0, // use default stack size
threadFunc, // thread function
this, // argument to thread function
0, // use default creation flags
&dwThreadId); // returns the thread identifier
return 1;
}
'windows programming' 카테고리의 다른 글
How to convert char* to LPCWSTR? (0) | 2015.10.16 |
---|---|
CString => char* 변환 (0) | 2008.03.04 |
fatal error C1010: unexpected end of file while looking for precompile (0) | 2008.03.04 |
Debug function (0) | 2008.02.29 |
dialog에 view 넣기 (0) | 2008.02.12 |