使用PostThreadMessage出错
我在用户线程中得到其线程句柄
HANDLE hCurrThread;
DuplicateHandle (GetCurrentProcess (), GetCurrentThread (),
GetCurrentProcess (), &hCurrThread, 0, 0, DUPLICATE_SAME_ACCESS);
在主线程中给用户线程发消息:
PostThreadMessage(hCurrThread,WM_REV_HIDE, 0 ,0);
出现编译错误:
:\demo\hjysxt\MainFrm.cpp(279) : error C2664: 'PostThreadMessageA' : cannot convert parameter 1 from 'void *' to 'unsigned long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
我怎么给另一线程发送WM_REV_HIDE消息?谁有示例源代码?