{"id":395,"date":"2014-09-03T23:56:40","date_gmt":"2014-09-03T15:56:40","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=395"},"modified":"2015-06-09T12:55:09","modified_gmt":"2015-06-09T04:55:09","slug":"mybean%e8%af%b4%e6%98%8e%e4%b9%a6-%e6%b7%bb%e5%8a%a0iapplicationcontextex01%e6%8e%a5%e5%8f%a3%e6%89%8b%e5%8a%a8%e5%8a%a0%e8%bd%bd%e5%ba%93%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=395","title":{"rendered":"[MyBean\u8bf4\u660e\u4e66]-\u6dfb\u52a0IApplicationContextEx01\u63a5\u53e3\u624b\u52a8\u52a0\u8f7d\u5e93\u6587\u4ef6"},"content":{"rendered":"<p>\u4e3b\u63a7\u53f0\u63a5\u53e3\u5b9e\u73b0\u4e86IApplicationContextEx01\u63a5\u53e3\uff0c\u53ef\u4ee5\u624b\u52a8\u6267\u884c\u52a0\u8f7dDLL\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\u53ef\u4ee5\u53c2\u89c1DEMO(samples\\manualLoadLib)<\/p>\n<pre class=\"lang:delphi decode:true \">IApplicationContextEx01 = interface(IInterface)\r\n    ['{10009F97-1949-476D-9CE1-1AF003B47DCB}']\r\n\r\n    \/\/\/ &lt;summary&gt;\r\n    \/\/\/  \u52a0\u8f7d\u5e93\u6587\u4ef6\r\n    \/\/\/ &lt;\/summary&gt;\r\n    \/\/\/ &lt;returns&gt;\r\n    \/\/\/    \u52a0\u8f7d\u6210\u529f\u8fd4\u56detrue, \u5931\u8d25\u8fd4\u56defalse, \u53ef\u4ee5\u7528raiseLastOsError\u83b7\u53d6\u5f02\u5e38\r\n    \/\/\/ &lt;\/returns&gt;\r\n    \/\/\/ &lt;param name=\"pvLibFile\"&gt; (PAnsiChar) &lt;\/param&gt;\r\n    function checkLoadLibraryFile(pvLibFile:PAnsiChar): Boolean; stdcall;\r\n\r\n    \/\/\/ &lt;summary&gt;\r\n    \/\/\/    \u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\r\n    \/\/\/ &lt;\/summary&gt;\r\n    \/\/\/ &lt;returns&gt;\r\n    \/\/\/   \u52a0\u8f7d\u5931\u8d25\u8fd4\u56defalse&lt;\u6587\u4ef6\u53ef\u80fd\u4e0d\u5b58\u5728&gt;\r\n    \/\/\/ &lt;\/returns&gt;\r\n    \/\/\/ &lt;param name=\"pvConfigFile\"&gt; (PAnsiChar) &lt;\/param&gt;\r\n    function checkLoadBeanConfigFile(pvConfigFile:PAnsiChar): Boolean; stdcall;\r\n  end;<\/pre>\n<p>applicationContext as IApplicationContextEx01.checkLoadLibraryFile(&#8216;plugin\\*.dll,plugin02\\*.dll&#8217;);<\/p>\n<p>\u6216\u8005<\/p>\n<p>applicationContext as IApplicationContextEx01.checkLoadLibraryFile(&#8216;C:\\pluginA.dll&#8217;);<\/p>\n<p>&nbsp;<\/p>\n<p>\u914d\u7f6e\u6587\u4ef6\u52a0\u8f7d\u7528\u6cd5\u4e00\u81f4<\/p>\n<p>&nbsp;<\/p>\n<p>* \u6839\u636e[\u9752\u6625]\u63d0\u51fa\u65b9\u6848\u52a0\u5f3a\u52a0\u8f7d\u6a21\u5f0f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u63a7\u53f0\u63a5\u53e3\u5b9e\u73b0\u4e86IApplication [&hellip;]<\/p>\n","protected":false},"author":6,"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":[53],"tags":[],"class_list":["post-395","post","type-post","status-publish","format-standard","hentry","category-mybean"],"views":2896,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/395","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=395"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/395\/revisions"}],"predecessor-version":[{"id":2565,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/395\/revisions\/2565"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}