{"id":226,"date":"2010-12-06T09:06:47","date_gmt":"2010-12-06T01:06:47","guid":{"rendered":"http:\/\/blog.dynox.cn\/?p=226"},"modified":"2010-12-06T09:06:47","modified_gmt":"2010-12-06T01:06:47","slug":"%e7%94%a8winddk%e7%8e%af%e5%a2%83build-mfc%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/blog.dynox.cn\/?p=226","title":{"rendered":"\u7528WinDDK\u73af\u5883build MFC\u7a0b\u5e8f"},"content":{"rendered":"<div class=\"gruber-markdown\"><p>WinDDK\u7684source\/makefile\u7f16\u8bd1\u652f\u6301batch command\u65b9\u5f0f\uff0c\u76f8\u5f53\u65b9\u4fbf\u3002\u5b9e\u9645\u4e0a\u7528\u5b83\u6765\u7f16\u8bd1MFC\u7a0b\u5e8f\u4e5f\u662f\u53ef\u80fd\u7684\u3002\u4f46\u8981\u6ce8\u610f\u4e00\u70b9\uff1a\u5bf9\u4f7f\u7528UNICODE\u7a0b\u5e8f\uff0c\u8981\u8bbe\u7f6eUSE_MFCUNICODE=1\uff0c\u4e0d\u662fUSE_MFC=1\u3002\u7528\u9519\u5730\u8bddlink\u4f1a\u641e\u9519\u5165\u53e3\u51fd\u6570\uff0c\u4f60\u7684\u7a0b\u5e8f\u8fd0\u884c\u65f6\u5c31\u4f1a\u62a5Access Violation.<\/p>\n<p>\u5e9e\u5927\u7684Visual Studio Ide\u73af\u5883\u6216SDK\u7a0b\u5e8f\u5305\u53ef\u4ee5\u4e0d\u7528\u5728\u5b89\u88c5\u4e86\u3002<\/p>\n<p>Z:> type ...\/test\/sources\nTARGETNAME=test\nTARGETPATH=obj\nTARGETTYPE=PROGRAM<\/p>\n<p>SOURCES= test.cpp test.rc<\/p>\n<p>C_DEFINES=$(C_DEFINES) -D_UNICODE -D_AFXDLL\nINCLUDES=.;..\\sys\\;$(DDK_INC_PATH);$(SDK_INC_PATH);$(MFC_INC_PATH);$(INCLUDES)<\/p>\n<p>TARGETLIBS=$(DDK_LIB_PATH)\\user32.lib   \\\n$(DDK_LIB_PATH)\\kernel32.lib \\\n$(DDK_LIB_PATH)\\comctl32.lib \\\n$(DDK_LIB_PATH)\\ws2_32.lib<\/p>\n<p>USE_MFCUNICODE=1\nPRECOMPILED_CXX=1\nPRECOMPILED_INCLUDE=stdafx.h<\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>WinDDK\u7684source\/makefile\u7f16\u8bd1\u652f\u6301batch command\u65b9\u5f0f\uff0c\u76f8\u5f53\u65b9\u4fbf\u3002\u5b9e\u9645\u4e0a\u7528\u5b83\u6765\u7f16\u8bd1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[9],"tags":[139,138,140,141,137],"views":3149,"_links":{"self":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts\/226"}],"collection":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=226"}],"version-history":[{"count":2,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.dynox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}