{"id":351,"date":"2014-08-30T12:08:06","date_gmt":"2014-08-30T04:08:06","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=351"},"modified":"2014-09-04T14:02:34","modified_gmt":"2014-09-04T06:02:34","slug":"mybean%e8%af%b4%e6%98%8e%e4%b9%a6-%e5%a6%82%e6%9e%9c%e8%bf%9b%e8%a1%8c%e6%9c%80%e7%ae%80%e5%8d%95%e7%9a%84demo","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=351","title":{"rendered":"[MyBean\u8bf4\u660e\u4e66]-\u5982\u679c\u8fdb\u884c\u6700\u7b80\u5355\u7684DEMO"},"content":{"rendered":"<p style=\"color: #000000\">MyBean\u662f\u8f7b\u91cf\u7ea7\u7684\u3001\u7eff\u8272\u7684\u6846\u67b6\uff0c\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u7684\u7ec4\u4ef6\u548c\u643a\u5e26\u4efb\u4f55\u7684\u5176\u4ed6\u6587\u4ef6\uff0c\u524d<\/p>\n<p style=\"color: #000000\">\u671f\u6b65\u9aa4\u5df2\u7ecf\u76f8\u5f53\u7cbe\u7b80\u4e86\uff0c\u4ed4\u7ec6\u9605\u8bfb\u5b8c\u4e0b\u9762\u7b80\u5355\u7684\u4e94\u4e2a\u6b65\u9aa4\uff0c\u5c31\u53ef\u4ee5\u7f16\u5199\u57fa\u4e8eMyBean\u7684\u63d2\u4ef6:<\/p>\n<p style=\"color: #000000\">\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">1.\u52a0\u5165Delphi\u7684\u641c\u7d22\u8def\u5f84<\/span><\/p>\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">source\\frame-common,source\\frame-core<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200246737751.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200296109675.png\" alt=\"image\" width=\"575\" height=\"356\" border=\"0\" \/><\/a><\/p>\n<p style=\"color: #000000\">\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">2.\u4e3b\u63a7\u53f0&lt;EXE&gt;\u8fdb\u884c\u521d\u59cb\u5316<\/span><\/p>\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">exe\u5de5\u7a0b\u4e2d\u5f15\u7528mybean.console.pas\uff0c \u5c31\u53ef\u4ee5\u5b8c\u6210\u521d\u59cb\u5316\u5de5\u4f5c\u4e86\u3002<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200322665730.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200355482129.png\" alt=\"image\" width=\"585\" height=\"408\" border=\"0\" \/><\/a><\/p>\n<p style=\"color: #000000\">\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">3.\u5982\u4f55\u5728\u7a0b\u5e8f\u4e2d&lt;EXE,DLL&gt;\u8c03\u7528\u63d2\u4ef6, \u63d2\u4ef6\u662f\u901a\u8fc7\u6ce8\u518c\u7684beanID\u53bb\u83b7\u53d6,\u5f15\u7528mybean.tools.beanFactory.pas\uff0c\u5c31\u53ef\u4ee5\u83b7\u53d6\u5230\u5bf9\u5e94\u7684\u63d2\u4ef6<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200394547468.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200418918822.png\" alt=\"image\" width=\"725\" height=\"329\" border=\"0\" \/><\/a><\/p>\n<h2 style=\"color: #000000\"><\/h2>\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">4.\u5982\u4f55\u521b\u5efa\u63d2\u4ef6\u5bbf\u4e3bDLL\u548c\u6ce8\u518c\u63d2\u4ef6,DLL\u4e2d\u5f15\u7528mybean.core.beanFactory.pas\u6587\u4ef6,\u7136\u540e\u5728\u5355\u5143\u6216\u8005DLL\u52a0\u8f7d\u7684\u65f6\u5019\u5bf9\u8be5\u5355\u5143\u4e2d\u7684beanFactory\u5bf9\u8c61\u8fdb\u884c\u6ce8\u518c\u3002<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200445326350.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200500953917.png\" alt=\"image\" width=\"715\" height=\"439\" border=\"0\" \/><\/a><\/p>\n<p style=\"color: #000000\">\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">5.\u8fd0\u884c\uff0cEXE\u548cDLL\u653e\u5230\u540c\u4e00\u76ee\u5f55\uff0c\u5c31\u53ef\u4ee5\u8fd0\u884c\uff0c\u4e0b\u9762\u662f\u8c03\u7528DLL\u4e2d\u7684DEMO<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200556101199.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301200595632525.png\" alt=\"image\" width=\"727\" height=\"417\" border=\"0\" \/><\/a><\/p>\n<p style=\"color: #000000\">\n<p style=\"color: #000000\"><span style=\"color: #0000ff\">\u6700\u540e.\u8fd9\u6837\u6700\u7b80\u5355\u7684DEMO\u7f16\u8bd1\u51fa\u6765\u4e86, \u5982\u679c\u9700\u8981\u6267\u884c\u6570\u636e\u5e93\u7684\u67e5\u8be2\uff0c\u4f9d\u8d56\u4e86diocp_bean.dll\u63d2\u4ef6\u548c\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\uff0cSERVER\u662f\uff0c\u670d\u52a1\u7aef\uff0c\u81ea\u5e26\u4e86\u4e00\u4e2a\u6210\u8bed\u7684access\u6570\u636e\u5e93\u3002<\/span><\/p>\n<p style=\"color: #000000\"><span style=\"color: #ff0000\">\u8fd9\u53ea\u662f\u4e00\u4e2a\u6700\u7b80\u5355\u7684DEMO\uff0c\u771f\u6b63\u4f7f\u7528\u65f6\u63a8\u8350\u4f7f\u7528\u6a21\u5757\u914d\u7f6e\u7684\u65b9\u5f0f\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u7528MyBean\u7684\u66f4\u9ad8\u7ea7\u7684\u7279\u6027\u3002<\/span><\/p>\n<p style=\"color: #000000\"><a href=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301201005324595.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" src=\"http:\/\/images.cnitblog.com\/blog\/1998\/201408\/301201024704036.png\" alt=\"image\" width=\"711\" height=\"195\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MyBean\u662f\u8f7b\u91cf\u7ea7\u7684\u3001\u7eff\u8272\u7684\u6846\u67b6\uff0c\u4e0d\u9700 [&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-351","post","type-post","status-publish","format-standard","hentry","category-mybean"],"views":4881,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/351","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=351"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}