如何开始一个线程? 是用_beginthreadex函数做的,然后运行程序的时候,线程函数并没有运行,请问为什么?要做什么设置吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 定义一个全局函数UINT ComputeThreadProc(LPVOID pParam);AfxBeginThread(ComputeThreadProc, GetSafeHwnd(), THREAD_PRIORITY_NORMAL);启动线程. CreateThread(NULL,0,(TPTHREAD_START_ROUTINE)&函数名,NULL,0,NULL); 我没用MFC,只是一个控制台程序 wjohen(孤帆) 我就是这么做的,不运行啊! sxmzmxh(哥舒帶菜刀) 该怎么做? project->setting->c/c++标签->选code generation->选multithreaded dll sxmzmxh(哥舒帶菜刀) 依旧不行 Main Thread should wait for the the addtional thread to start.in the main thread call Sleep(1000);to pause the main thread so the child will run! 为什么不用MFC?因为MFC的source code很臭? 团队开发的问题 线程结束时主程序死掉了。 请问,谢谢! 请教! 急急急!!!请问如何得到当前时间并转换为:年-月-日 时:分:秒 的格式?? AfxRegisterWndClass(0,....)的第一个参数为0是什么意思,请高手指教。 急,请各位高手帮忙 请教,如何实现字符串的替换功能 怎样实现全屏功能?急,100分求教。 如何控制一个程序含有两个进程ID状态 紧张求助,串口通讯问题 收ICMP报文的时候函数recvfrom()问题求教。
THREAD_PRIORITY_NORMAL);
启动线程.
in the main thread call Sleep(1000);
to pause the main thread
so the child will run!