{"id":2777,"date":"2015-08-06T09:08:59","date_gmt":"2015-08-06T01:08:59","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=2777"},"modified":"2015-08-06T09:08:59","modified_gmt":"2015-08-06T01:08:59","slug":"qplugins%e4%b8%ba%e5%95%a5%e4%b8%8d%e8%83%bd%e5%9c%a8-dllbpl-%e4%b8%8e%e4%b8%bb%e7%a8%8b%e5%ba%8f%e4%b9%8b%e9%97%b4%e7%9b%b4%e6%8e%a5%e4%bc%a0%e9%80%92%e5%af%b9%e8%b1%a1%e5%81%9a%e4%b8%ba%e5%8f%82","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=2777","title":{"rendered":"[QPlugins]\u4e3a\u5565\u4e0d\u80fd\u5728 DLL\/BPL \u4e0e\u4e3b\u7a0b\u5e8f\u4e4b\u95f4\u76f4\u63a5\u4f20\u9012\u5bf9\u8c61\u505a\u4e3a\u53c2\u6570\uff1f"},"content":{"rendered":"<p>\u8fd9\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5f88\u53e4\u8001\u7684\u8bdd\u9898\u4e86\uff0c\u4f46\u8bb8\u591a\u670b\u53cb\u8fd8\u5e76\u4e0d\u77e5\u9053\u4e4b\u6240\u4ee5\u4e0d\u80fd\u4f20\u9012\u7684\u539f\u56e0\u3002\u6240\u4ee5\u5728\u672c\u6587\u5c31\u8bd5\u56fe\u4e3a\u5927\u5bb6\u7b80\u5355\u7684\u8bf4\u660e\u4e00\u4e0b\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5bf9\u8c61\u662f\u7c7b\u7684\u4e00\u4e2a\u5177\u4f53\u7684\u5b9e\u4f8b\u3002\u800c\u8fd9\u5c31\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>\u4e0d\u540c\u7684\u8bed\u8a00\u5bf9\u4e8e\u7c7b\u7684\u5b9e\u73b0\u65b9\u5f0f\u4e5f\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5\uff0c\u540c\u6837\u540d\u4e3a TMyClass \u7684 Delphi \u00a0\u5b9e\u4f8b A \u5e76\u4e0d\u53ef\u80fd\u8f6c\u6362\u4e3a\u540c\u540d\u7684 C++ \u5b9e\u4f8b B\uff0c\u5c31\u7b97\u662f\u5f3a\u8f6c\u4e86\uff0c\u90a3\u4e48\u540e\u679c\u4e5f\u662f\u96be\u4ee5\u9884\u6599\u7684\u3002<\/li>\n<li>\u65e2\u7136\u4e0d\u540c\u8bed\u8a00\u7f16\u8bd1\u7684\u4e0d\u884c\uff0c\u90a3\u4e48\u76f8\u540c\u8bed\u8a00\u7f16\u8bd1\u7684\u662f\u4e0d\u662f\u5c31\u884c\u5462\uff1f\u5f88\u9057\u61be\uff0c\u4f9d\u7136\u4e0d\u884c\u3002\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u5c31\u662f C++\uff0c\u89c4\u8303\u5e76\u6ca1\u6709\u7ea6\u5b9a\u7c7b\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u6240\u4ee5\u4e0d\u540c\u7684\u7f16\u8bd1\u5668\u5382\u5546\u6709\u81ea\u5df1\u7684\u5b9e\u73b0\uff0c\u663e\u793a VC++ \u548c BC++ \u5b9e\u73b0\u7684\u540c\u540d\u7684\u7c7b\u578b\u4e5f\u662f\u65e0\u6cd5\u8f6c\u6362\u7684\u3002<\/li>\n<li>\u597d\u4e86\uff0c\u90a3\u6211\u540c\u4e00\u4e2a\u5f00\u53d1\u5de5\u5177\u7f16\u8bd1\u7684\u662f\u4e0d\u662f\u80fd\u884c\u5462\uff1f\u62a5\u6b49\uff0c\u8fd9\u4f9d\u7136\u662f\u4e00\u4e2a\u5f88\u4ee4\u4eba\u89c9\u5f97\u96be\u8fc7\u7684\u4efb\u52a1\u3002\u8fd9\u91cc\u5b58\u5728\u51e0\u4e2a\u95ee\u9898\uff1a\n<ul>\n<li>\u540c\u4e00\u5f00\u53d1\u5de5\u5177\uff0c\u4e0d\u540c\u7684\u7248\u672c\u4e4b\u95f4\u7684\u5b9e\u73b0\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u5dee\u5f02\uff1b<\/li>\n<li>\u540c\u4e00\u7248\u672c\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u7531\u4e8e\u65e0\u6cd5\u9884\u671f\u4e3b\u7a0b\u5e8f\u548c DLL\/BPL \u4e4b\u95f4\u662f\u5426\u662f\u540c\u4e00\u4e2a IDE \u7f16\u8bd1\uff0c\u6240\u4ee5\u5b9e\u73b0\u4e0a\uff0c\u4ed6\u4eec\u662f\u5404\u81ea\u72ec\u7acb\u8bb0\u5f55\u4e86\u81ea\u5df1\u7684\u7c7b\u578b\u4fe1\u606f\u3002\u800c\u8fd9\u4e9b\u7c7b\u578b\u4fe1\u606f\u7531\u4e8e\u5404\u81ea\u72ec\u7acb\uff0c\u6240\u4ee5\uff0c\u5f53\u4f60\u4f20\u9012\u4e00\u4e2a\u5bf9\u8c61\u7684\u5b9e\u4f8b\u7ed9 DLL\/BPL \u65f6\uff0c\u5982\u679c\u8fd9\u4e2a\u5bf9\u8c61\u5185\u90e8\u7684\u67d0\u4e2a\u65b9\u6cd5\u8fdb\u884c\u4e86\u7c7b\u578b\u8f6c\u6362\uff08 Delphi \u4e2d\u7684 as\uff0cC++ \u4e2d\u7684 xxx_cast \uff09\u6216\u5224\u5b9a\uff08Delphi \u4e2d\u7684 is \uff09\uff0c\u800c\u8fd9\u662f\u5f88\u5e38\u89c1\u7684\u64cd\u4f5c\u3002\u7531\u4e8e DLL\/BPL \u6309\u7167\u81ea\u5df1\u7684\u7c7b\u578b\u4fe1\u606f\u53bb\u5224\u65ad\u5bf9\u8c61\u7684\u7c7b\u578b\u4fe1\u606f\uff0c\u7531\u4e8e\u5728\u5bf9\u8c61\u7684\u7c7b\u578b\u4fe1\u606f\u8868\u4e2d\u65e0\u6cd5\u627e\u5230\u76ee\u6807\u7c7b\u578b\u4fe1\u606f\uff0c\u6240\u4ee5\u8f6c\u6362\u4e5f\u53ea\u80fd\u4ee5\u5931\u8d25\u544a\u7ec8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u81f3\u6b64\uff0c\u4f60\u662f\u4e0d\u662f\u6b7b\u5fc3\u4e86\u3002\u597d\u5427\uff0c\u6211\u4e5f\u89c9\u5f97\u4f60\u5e94\u8be5\u6b7b\u5fc3\u7528\u522b\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u4f46\u5b9e\u9645\u4e0a\u8fd8\u662f\u6709\u4e00\u4e2a\u5fae\u5c0f\u7684\u7f1d\u9699\u7559\u4e0b\u6765\uff0c\u90a3\u5c31\u662f\u5728\u540c\u65f6\u7b26\u5408\u4ee5\u4e0b\u6761\u4ef6\u4e0b\uff0c\u4f60\u4f20\u9012\u5bf9\u8c61\u53ef\u4ee5\u88ab\u8ba4\u4e3a\u662f\u5b89\u5168\u7684\uff1a\n<ul>\n<li>\u540c\u4e00\u5f00\u53d1\u5de5\u5177\u7f16\u8bd1\u7684\u4e3b\u7a0b\u5e8f\u548c DLL \/BPL\uff1b<\/li>\n<li>\u5bf9\u8c61\u7c7b\u578b\u662f\u57fa\u7c7b\u6216\u8005\u5bf9\u8c61\u4e0d\u4f1a\u8c03\u7528\u4efb\u4f55\u8d4b\u503c\u7ed9\u7236\u7c7b\u578b\u6216\u5176\u5b83\u7c7b\u578b\u8f6c\u6362\u7684\u64cd\u4f5c\uff1b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u597d\u4e86\uff0c\u8bf4\u5230\u8fd9\u91cc\uff0c\u6211\u89c9\u5f97\u8fd9\u4e2a\u6761\u4ef6\u6709\u70b9\u592a\u82db\u523b\u4e86\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u8fd8\u662f\u653e\u5f03\u8fd9\u4e00\u52aa\u529b\u5427\u3002\u771f\u8981\u9700\u8981\u4f20\u9012\u5bf9\u8c61\u65f6\uff0c\u91c7\u7528\u63a5\u53e3\u5bf9\u5bf9\u8c61\u8fdb\u884c\u4e00\u4e2a\u7b80\u5355\u7684\u5c01\u88c5\u6765\u4ee3\u66ff\u76f4\u63a5\u4f20\u9012\u5bf9\u8c61\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u53ea\u6240\u4ee5\u63a5\u53e3\u662f\u53ef\u884c\u7684\uff0c\u662f\u56e0\u4e3a\u63a5\u53e3\u8fd9\u4e2a\u4e1c\u897f\u662f\u6709\u7edf\u4e00\u7684\u89c4\u8303\u7684\uff0c\u5404\u4e2a\u8bed\u8a00\u90fd\u5b9e\u73b0\u4e86\u76f8\u540c\u7684\u89c4\u5219\uff0c\u6240\u4ee5\u5927\u5bb6\u7684\u7c7b\u578b\u4fe1\u606f\u662f\u53ef\u4ee5\u76f8\u4e92\u4ea4\u4e92\u7684\u3002<\/p>\n<p>\u5982\u679c\u6709\u4ec0\u4e48\u8865\u5145\uff0c\u6b22\u8fce\u5927\u5bb6\u63d0\u4f9b\u8bf4\u660e\u6216\u5728\u7fa4\u4e2d\u8ba8\u8bba\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u5f88\u53e4\u8001\u7684\u8bdd\u9898\u4e86\uff0c\u4f46\u8bb8\u591a\u670b\u53cb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,21],"tags":[],"class_list":["post-2777","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-misc"],"views":4345,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2777"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2777\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/2777\/revisions\/2778"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}