{"image_url":null,"description":"\u307e\u305a\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u4f5c\u6210CWinthread* thread = AfxBeginThread( DoThread , NULL);\u307e\u305a\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u7d42\u4e86\u306e\u78ba\u8a8d\u90e8\u5206//\u30b9\u30ec\u30c3\u30c9\u306e\u72b6\u614b\u306e\u7bb1 DWORD threadInfo; while(1){ //\u3053\u306e\u95a2\u6570\u3067\u30b9\u30ec\u30c3\u30c9\u306e\u72b6\u614b\u306e\u5024\u3092\u3068\u308b ::GetExitCodeThread( thread->m_hThread , &threadInfo); //STILL_ACTIVE\u306e\u5024\u306e\u3068\u304d\u306f\u30b9\u30ec\u30c3\u30c9\u304c\u7d99\u7d9a\u4e2d if(threadInfo != STILL_ACTIVE){ //thread \u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u524a\u9664\u3002 m_hThraed->ExitI\u2026","height":"190","type":"rich","blog_url":"https://kskhsn.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/kskhsn/","provider_url":"https://hatena.blog","published":"2012-11-13 10:43:02","title":"\u30b9\u30ec\u30c3\u30c9\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u65b9\u6cd5\u306b\u3064\u3044\u3066","url":"https://kskhsn.hatenablog.jp/entry/2012/11/13/104302","blog_title":"\u306a\u3093\u3068\u306a\u304f","author_name":"kskhsn","categories":["C/C++"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkskhsn.hatenablog.jp%2Fentry%2F2012%2F11%2F13%2F104302\" title=\"\u30b9\u30ec\u30c3\u30c9\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d\u65b9\u6cd5\u306b\u3064\u3044\u3066 - \u306a\u3093\u3068\u306a\u304f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","width":"100%"}