unsigned int __stdcall TForm1::SecondThreadFunc(void* pArguments)
{
TForm1 * pthis = (TForm1*)pArguments;
pthis->OpenFile();
HANDLE hHandle = pthis->Handle;
//ShowMessage("aaa");
::SendMessage(pthis->Handle, WM_USER+10, 0, 0 ); //쓰레드가 끝났음을 알린다.
_endthreadex(0);
return 0;
}
실행하면 HANDLE hHandle = pthis->Handle; 이부분에서 에러가 납니다.
윈도위의 핸들을 값이 없습니다.
여기를 어떻해야 윈도우 핸들값을 가져올수 있나요?????
여기저기 뒤져봐도.......ㅠ.ㅠ
|