15,473
社区成员




我定义了一个对话框程序,加了个线程,可是一些函数调用却编译提示,未定义?这是怎么回事?
怎么解决?
DWORD WINAPI Fun1Proc(LPVOID lpParameter)
{
//MessageBox("hello"); 认不到
//ShowHello(); 认不到。。。
AfxMessageBox("hello") 通过
return 1;
}
void CAaaDlg::OnButton1()
{
// TODO: Add your control notification handler code here
HANDLE hThread1;
hThread1 = CreateThread(NULL,0,Fun1Proc,NULL,0,NULL);
CloseHandle(hThread1); //关闭线程句柄
MessageBox("hello");
}
void CAaaDlg::ShowHello()
{
MessageBox("hello");
}