HANDLE hThread; void SpeakThread(LPVOID pParam); DWORD dwThreadId, dwThrdParam = 1; void CSound::Begin(void) { // TODO: 在此添加实现代码 hThread = CreateThread(NULL, // default security attributes 0, // use default stack size (LPTHREAD_START_ROUTINE)SpeakThread, // thread function &dwThrdParam, // argument to thread function 0, // use default creation flags &dwThreadId); } void SpeakThread(LPVOID pParam) { }
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)