{"id":1284,"date":"2014-08-07T20:14:29","date_gmt":"2014-08-07T12:14:29","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1284"},"modified":"2014-08-07T20:14:29","modified_gmt":"2014-08-07T12:14:29","slug":"mfc-vs2010-%e7%ba%bf%e7%a8%8b%e7%9a%84%e5%88%9b%e5%bb%ba","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1284","title":{"rendered":"mfc-vs2010 -\u7ebf\u7a0b\u7684\u521b\u5efa"},"content":{"rendered":"

1.
\n\u547d\u540d\u5168\u5c40
\nC*Dlg *plg;
\n\u5728\u5bf9\u8bdd\u6846\u7684init\u51fd\u6570\u4e2d\u6dfb\u52a0\uff1a
\npdlg = this;
\n2.
\n\u6309\u94ae\u51fd\u6570\u6dfb\u52a0\uff1a
\n\tHANDLE hThread;
\n\thThread = CreateThread(NULL,0,MakeThread,NULL,0,NULL);
\n\tCloseHandle(hThread);
\n3.
\n\u5b9a\u4e49\u5168\u5c40\u7ebf\u7a0b\u51fd\u6570\uff1a
\n\/\/\u5904\u7406\u7ebf\u7a0b
\nDWORD WINAPI MakeThread(
\n\tLPVOID lpParameter \/\/thread data
\n\t)
\n{
\n\t\/\/\u4f60\u7684\u5904\u7406\u8fc7\u7a0b<\/p>\n

\treturn 0;
\n\uff5d
\n4.
\nmfc-vs2010 -\u7ebf\u7a0b\u7684\u7528\u6cd5
\nover!<\/p>\n","protected":false},"excerpt":{"rendered":"

1. \u547d\u540d\u5168\u5c40 C*Dlg *plg; \u5728\u5bf9\u8bdd\u6846\u7684init\u51fd\u6570\u4e2d\u6dfb\u52a0\uff1a pdlg = this; 2. \u6309\u94ae\u51fd\u6570\u6dfb\u52a0\uff1a HANDLE hThread; hThread = CreateThread(NULL,0,MakeThread,NULL,0,NULL); CloseHandle(hThread); 3. \u5b9a\u4e49\u5168\u5c40\u7ebf\u7a0b\u51fd\u6570\uff1a \/\/\u5904\u7406\u7ebf\u7a0b DWORD WINAPI MakeThread( LPVOID lpParameter \/\/thread data ) { \/\/\u4f60\u7684\u5904\u7406\u8fc7\u7a0b return 0; \uff5d 4. mfc-vs2010 -\u7ebf\u7a0b\u7684\u7528\u6cd5 over!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1284"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1284"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":1285,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1284\/revisions\/1285"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}