是用_beginthreadex函数做的,然后运行程序的时候,线程函数并没有运行,
请问为什么?要做什么设置吗?

解决方案 »

  1.   

    定义一个全局函数UINT ComputeThreadProc(LPVOID pParam);AfxBeginThread(ComputeThreadProc, GetSafeHwnd(),
                 THREAD_PRIORITY_NORMAL);
    启动线程.
      

  2.   

    CreateThread(NULL,0,(TPTHREAD_START_ROUTINE)&函数名,NULL,0,NULL);
      

  3.   

    我没用MFC,只是一个控制台程序
      

  4.   

    wjohen(孤帆) 我就是这么做的,不运行啊!
      

  5.   

    sxmzmxh(哥舒帶菜刀) 该怎么做?
      

  6.   

    project->setting->c/c++标签->选code generation->选multithreaded dll
      

  7.   

    sxmzmxh(哥舒帶菜刀)  依旧不行
      

  8.   

    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!
      

  9.   

    为什么不用MFC?因为MFC的source code很臭?