{"id":1109,"date":"2014-04-10T00:50:16","date_gmt":"2014-04-09T16:50:16","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1109"},"modified":"2014-05-05T11:11:46","modified_gmt":"2014-05-05T03:11:46","slug":"vc-%e7%ba%bf%e7%a8%8b%e8%b0%83%e8%af%95%e4%b8%ad%e5%86%99%e6%97%a5%e5%bf%97%e8%ae%b0%e5%bd%95-log%e7%9a%84%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1109","title":{"rendered":"vc++ \u7ebf\u7a0b\u8c03\u8bd5\u4e2d\u5199\u65e5\u5fd7\u8bb0\u5f55 log\u7684\u51fd\u6570"},"content":{"rendered":"
\/\/\u81ea\u5df1\u5199\u7684\u4e00\u4e2a\u65e5\u5fd7\u8bb0\u5f55\u7684\u51fd\u6570\r\nvoid WriteLog(CString logFileName,CString logText)\r\n{\r\n\tCStdioFile file(logFileName,CFile::modeWrite);\r\n\tfile.SeekToEnd();\r\n\tfile.WriteString(logText+\"\\r\\n\");\r\n\tfile.Close();\r\n\r\n}<\/pre>\nlogFileName\u662f\u65e5\u5fd7\u6587\u4ef6\u540d\u79f0\uff0c\u4e14\u5fc5\u987b\u662f\u5df2\u7ecf\u5b58\u5728\u7684\u6587\u4ef6<\/p>\n
logtext\u662f\u8981\u8ffd\u52a0\u7684\u8bb0\u5f55<\/p>\n","protected":false},"excerpt":{"rendered":"
\/\/\u81ea\u5df1\u5199\u7684\u4e00\u4e2a\u65e5\u5fd7\u8bb0\u5f55\u7684\u51fd\u6570 void WriteLog(CString logFileName,CString logText) { CStdioFile file(logFileName,CFile::modeWrite); file.SeekToEnd(); file.WriteString(logText+”\\r\\n”); file.Close(); } logFileName\u662f\u65e5\u5fd7\u6587\u4ef6\u540d\u79f0\uff0c\u4e14\u5fc5\u987b\u662f\u5df2\u7ecf\u5b58\u5728\u7684\u6587\u4ef6 logtext\u662f\u8981\u8ffd\u52a0\u7684\u8bb0\u5f55<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1109"}],"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=1109"}],"version-history":[{"count":4,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1109\/revisions"}],"predecessor-version":[{"id":1119,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1109\/revisions\/1119"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}