{"id":340702,"date":"2021-02-12T23:56:44","date_gmt":"2021-02-12T15:56:44","guid":{"rendered":"http:\/\/4563.org\/?p=340702"},"modified":"2021-02-12T23:56:44","modified_gmt":"2021-02-12T15:56:44","slug":"%e7%a8%8b%e5%ba%8f%e8%b0%83%e7%94%a8-dll-%e7%9a%84%e6%9c%ac%e8%b4%a8%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=340702","title":{"rendered":"\u7a0b\u5e8f\u8c03\u7528 dll \u7684\u672c\u8d28\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7a0b\u5e8f\u8c03\u7528 dll \u7684\u672c\u8d28\u662f\u4ec0\u4e48\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5927\u5bb6\u8fc7\u5e74\u597d\uff0c\u4e0d\u77e5\u9053\u8fd9\u65f6\u95f4\u53d1\u6280\u672f\u95ee\u9898\u8fd8\u6709\u6ca1\u6709\u4eba\u7406\u6211\u3002<\/p>\n<p>\u6211\u4eec\u505a\u5f00\u53d1\u7684\u5728\u5404\u79cd\u7cfb\u7edf\u4e2d\u7f16\u8bd1\u548c\u4f7f\u7528 dll \u548c so \u6587\u4ef6\u5df2\u7ecf\u5f88\u591a\u4e86\uff0c\u4f46\u662f\u6211\u6700\u8fd1\u53d1\u73b0\u81ea\u5df1\u5b8c\u5168\u4e0d\u7406\u89e3\u8fd9\u4e2a\u4e1c\u897f\uff0c\u4ee5\u4e3a\u5b83\u81ea\u7136\u800c\u7136\u5c31\u662f\u8fd9\u6837\u7684\uff0c\u5199\u597d\u4e86\u81ea\u7136\u80fd\u7f16\u8bd1\uff0c\u7f16\u8bd1\u5b8c\u81ea\u7136\u80fd\u5f15\u7528\uff0c\u4f46\u662f\u73b0\u5728\u53d1\u73b0\u81ea\u5df1\u5bf9\u7ec6\u8282\u5b8c\u5168\u4e0d\u6e05\u695a\uff0c\u8c03\u7528\u8fc7\u7a0b\u5bf9\u6211\u6765\u8bf4\u5b8c\u5168\u662f\u4e2a\u9ed1\u7bb1\u3002<\/p>\n<p>\u4e3e\u4f8b\u6765\u8bf4\uff0c\u4e00\u822c\u6bd4\u5982\u6211\u4eec\u5728\u540e\u7aef\u5b9e\u73b0\u8bf8\u5982-&gt;\u64cd\u4f5c\u56fe\u7247\u3001\u89c6\u9891\u3001\u97f3\u9891\u8fd9\u4e9b\u89e3\u7801\u7f16\u7801\u64cd\u4f5c\u65f6\uff0c\u5728\u540c\u6837\u7684\u5185\u5b58\u5360\u7528\u7684\u7b49\u7ea7\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5f80\u5f80\u503e\u5411\u4e8e\u901a\u8fc7\u7a0b\u5e8f\u201c\u81ea\u8eab\u201d\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\uff0c\u800c\u4e0d\u662f\u901a\u8fc7 popen \u8c03\u7528 ffmepg\uff0c\u867d\u7136\u540e\u8005\u4e5f\u80fd\u8fbe\u5230\u5b8c\u5168\u4e00\u6837\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u7cfb\u7edf\u7684 pipe \u901a\u5e38\u60c5\u51b5\u4e0b\uff08\uff1f\uff09\u662f\u53ef\u9760\u7684\u3002<\/p>\n<p>\u4f46\u662f\u8fd9\u4e9b\u6240\u8c13\u7684\u81ea\u8eab\u5b9e\u73b0\uff0c\u5f80\u5f80\u4e5f\u4e0d\u662f\u7a0b\u5e8f\u5458\u624b\u5199\uff0c\u8fd8\u662f\u8981\u8c03\u7528\u7b2c\u4e09\u65b9\u7c7b\u5e93\uff0c\u800c\u7b2c\u4e09\u65b9\u5e93\u4e2d\u5f80\u5f80\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff0c\u6bd4\u5982\u4f60\u907f\u5f00\u4e86 ffmpeg.exe \uff0c\u5b9e\u9645\u4e0a\u8c03\u7528\u7684\u5374\u662f ffmpeg.dll \u4e4b\u7c7b\u7684\u4e1c\u897f\u3002\u7cfb\u7edf\u91c7\u7528 dll \u6a21\u5f0f\u800c\u4e0d\u662f\u8fdb\u7a0b\u7ba1\u7406\u6a21\u5f0f\u8fd9\u5f88\u597d\u7406\u89e3\uff0c\u4e0d\u8fc7\u4ece\u5f00\u53d1\u4eba\u5458\u7684\u89d2\u5ea6\u51fa\u53d1\uff0cdll \u5177\u4f53\u6765\u8bf4\u53c8\u6709\u90a3\u4e9b\u597d\u5904\uff0c\u8ba9\u6211\u4eec\u629b\u5f03 popen \u5462\uff1f\u6bd5\u7adf\u540e\u8005\u4f7f\u7528\u4e0a\u53ea\u9700\u8981\u4e00\u884c\u547d\u4ee4\u800c\u5df2\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5266066\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/en.wikipedia.org\/wiki\/Dynamic_linker                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266067\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; \u4e0d\u8fc7\u4ece\u5f00\u53d1\u4eba\u5458\u7684\u89d2\u5ea6\u51fa\u53d1\uff0cdll \u5177\u4f53\u6765\u8bf4\u53c8\u6709\u90a3\u4e9b\u597d\u5904\uff0c\u8ba9\u6211\u4eec\u629b\u5f03 popen \u5462\uff1f<\/p>\n<p>\u8de8\u8fdb\u7a0b\u901a\u4fe1\u9ebb\u70e6\uff0c\u5f00\u9500\u5927\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266068\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ysc3839 \u5355\u4e2a\u7a0b\u5e8f\u5728\u6e90\u7801\u9636\u6bb5\u4e92\u76f8\u8fde\u63a5\u6211\u80fd\u7406\u89e3\u5b83\u662f\u600e\u4e48\u5de5\u4f5c\u7684\uff0c\u4f46\u662f\u6211\u4e0d\u7406\u89e3\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\u600e\u4e48\u5f15\u5165\u53e6\u5916\u4e00\u4e2a\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266069\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wevsty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1 \u3001\u65e2\u7136\u8bf4\u5230 DLL \u90a3\u5c31\u662f Windows \u5e73\u53f0\u4e86\uff0cWin \u4e0b\u9762\u5e76\u6ca1\u6709 popen \u8fd9\u4e48\u4e00\u4e2a\u4e1c\u897f\uff0c\u5b9e\u9645\u4e0a\u4f60\u7528\u7684 popen \u662f\u522b\u4eba\u5e2e\u4f60\u5c01\u88c5\u597d\u7684\u4e1c\u897f\u3002<br \/>2 \u3001DLL \u52a0\u8f7d\u4ee5\u540e\u8c03\u7528\u51e0\u4e4e\u8ddf\u8c03\u7528\u51fd\u6570\u4e00\u6837\uff0c\u6ca1\u6709\u989d\u5916\u7684\u5f00\u9500\u3002<br \/>\u7528\u533f\u540d\u6216\u8005\u547d\u540d\u7ba1\u9053\u6765\u505a\u4ea4\u4e92\u662f\u9700\u8981\u989d\u5916\u7684\u5f00\u9500\u7684\uff0c\u5e76\u4e14 Windows \u4e0b\u9762\u542f\u52a8\u8fdb\u7a0b\u5b9e\u9645\u4e0a\u6bd4\u8f83\u6162\uff0c\u5982\u679c\u662f\u9700\u8981\u53cd\u590d\u542f\u52a8\u8fdb\u7a0b\u7684\u4efb\u52a1\uff0c\u90a3\u4e48\u7528 popen \u8fd9\u6837\u7684\u65b9\u5f0f\u662f\u4e0d\u5408\u9002\u7684\u3002<br \/>3 \u3001\u4f60\u7528\u7ba1\u9053\u4e4b\u7c7b\u7684\u65b9\u6cd5\uff0c\u51fa\u73b0\u610f\u5916\u662f\u5904\u7406\u8d77\u6765\u662f\u66f4\u9ebb\u70e6\u7684\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u53bb\u68c0\u67e5\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u8fd4\u56de\u503c\uff0c\u4ee5\u53ca\u8f93\u51fa\u7684\u5185\u5bb9\u3002\u5982\u679c\u8f93\u51fa\u5f88\u590d\u6742\u7684\u8bdd\uff0c\u80af\u5b9a\u662f\u6bd4\u76f4\u63a5\u8c03\u51fd\u6570\u66f4\u9ebb\u70e6\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266070\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zacharyjia <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u300a\u7a0b\u5e8f\u5458\u7684\u81ea\u6211\u4fee\u517b:\u94fe\u63a5\u3001\u88c5\u8f7d\u4e0e\u5e93\u300b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266071\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ysc3839 \u8bf4\u5b9e\u8bdd\u6211\u7684\u5f00\u53d1\u7ecf\u9a8c\u6765\u8bb2\uff0c\u6211\u9047\u5230\u8fc7\u56e0\u4e3a\u7206\u5185\u5b58\u5bfc\u81f4\u7ba1\u9053\u5d29\u6e83\u7684\uff0c\u4f46\u662f\u5728\u4e0d\u89e6\u53ca\u786c\u4ef6\u74f6\u9888\u7684\u60c5\u51b5\u4e0b\u5176\u5b9e\u6211\u6ca1\u9047\u5230\u8fc7 popen \u6709\u4ec0\u4e48\u7a33\u5b9a\u6027\u95ee\u9898\u3002\u6240\u4ee5\u53d1\u73b0\u81ea\u5df1\u6ca1\u6cd5\u56de\u7b54\u4e3a\u4ec0\u4e48\u4e0d\u76f4\u63a5\u7528 popen                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266072\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ignor <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u672c\u8d28\u5c31\u662f\u66f4\u76f4\u63a5\u5730\u8c03\u7528\u4ee3\u7801                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266073\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ahhui <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dll \u7684\u4e3b\u8981\u4f5c\u7528\u6709 2 \u4e2a\uff0c\u4e00\u4e2a\u662f\u4ee3\u7801\u590d\u7528\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u8282\u7701\u5185\u5b58\u3002<\/p>\n<p>\u7b2c\u4e00\u4e2a\u4f5c\u7528\u5f88\u5bb9\u6613\u7406\u89e3\uff0c\u628a\u76f8\u4e92\u5173\u8054\u7684\u4ee3\u7801\u5c01\u88c5\u5230\u4e00\u4e2a dll \u91cc\uff0c\u5c31\u5982\u540c\u5728\u6e90\u7801\u5c42\u9762\u5c01\u88c5\u5230\u4e00\u4e2a cpp\uff0c\u6216\u8005\u5176\u4ed6\u8bed\u8a00\u7684\u5355\u5143\u3002\u9700\u8981\u4f7f\u7528\u7684\u65f6\u5019\uff0cimport \u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\u91cc\u9762\u7684\u51fd\u6570\u4e86\u3002\u800c dll \u5c31\u662f\u8fd9\u5c42\u903b\u8f91\u7684\u7f16\u8bd1\u7ed3\u679c\u7684\u5c01\u88c5\u3002\u5047\u8bbe\u4f60\u9700\u8981\u5f00\u53d1\u4e00\u4e2a\u529f\u80fd\uff0c\u4f46\u4e0d\u5e0c\u671b\u628a\u6e90\u4ee3\u7801\u7ed9\u4e0b\u6e38\u8c03\u7528\u8005\uff0c\u4f60\u53ef\u4ee5\u628a cpp \u505a\u6210 dll\uff0c\u628a\u51fd\u6570\u5bfc\u51fa\u6210 lib\uff0c\u628a\u58f0\u660e\u5199\u5165 h \u6587\u4ef6\u91cc\u3002\u8fd9\u6837\u4f60\u53ea\u8981\u5206\u53d1\u4e0a\u8ff0 3 \u4e2a\u6587\u4ef6\u5c31\u53ef\u4ee5\u8ba9\u4e0b\u6e38\u5f00\u53d1\u76f4\u63a5\u4f7f\u7528\u4e86\u3002\u53e6\u5916\uff0c\u4ee3\u7801\u80fd\u590d\u7528\u610f\u5473\u7740\u4e0d\u9700\u8981\u628a\u6240\u6709\u903b\u8f91\u90fd\u7f16\u8bd1\u5230 exe \u91cc\u3002\u4f60\u60f3\u60f3\uff0c\u5982\u679c\u6ca1\u6709 windows \u7684 dll\uff0c\u4f60\u8981\u521b\u5efa\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u5fc5\u987b\u4ece\u7a97\u53e3\u521b\u5efa\u754c\u9762\u7ed8\u5236\u9f20\u6807\u4ea4\u4e92\u7b49\u4e00\u7cfb\u5217\u4ee3\u7801\u903b\u8f91\u5f00\u59cb\u5199\uff0c\u65e2\u6d6a\u8d39\u65f6\u95f4\uff0c\u4e5f\u5bfc\u81f4\u7f16\u8bd1\u51fa\u6765\u7684 exe \u6709 20g \u8fd9\u4e48\u5927\uff0c\u4e00\u65e6\u53d1\u73b0 bug\uff0c\u4f60\u8981\u91cd\u65b0\u4fee\u6539\u4ee3\u7801\uff0c\u91cd\u65b0\u5206\u53d1 20g \u7684\u6587\u4ef6\u3002\u800c\u4e14\u8fd9 20g \u91cc\u7528\u6237\u7528\u5230\u7684\u529f\u80fd\u5e76\u4e0d\u662f 100%\uff0c\u4f46\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u5374\u9700\u8981 20g \u7269\u7406\u5185\u5b58\u3002\u6240\u4ee5\u5f88\u4e0d\u73b0\u5b9e\u4e5f\u6ca1\u6709\u76ca\u5904\u3002\u5f53\u62c6\u5206 dll \u540e\uff0c\u4f60\u7684\u7a0b\u5e8f\u9700\u8981 ui \u4ea4\u4e92\u7684\u53ea\u8981\u94fe\u63a5\u76f8\u5e94\u7684 dll\uff0c\u4f60\u5c31\u53ef\u4ee5\u5de5\u4f5c\u4e86\uff1b\u4f60\u8981\u7f51\u7edc\u7684\uff0c\u53ea\u8981\u94fe\u63a5\u5bf9\u5e94 dll \u5c31\u53ef\u4ee5\u4e86\uff1b\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<p>\u4e0a\u9762\u5df2\u7ecf\u7ed9\u51fa\u4e00\u5b9a\u7684\u8282\u7ea6\u5185\u5b58\u89e3\u91ca\uff0c\u4f46\u8fd8\u9700\u8981\u8fdb\u4e00\u6b65\u3002windows \u662f\u8fd0\u884c\u5728 ring0 \u5c42\u7684\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u8c03\u914d\u4efb\u4f55\u65e0\u7406\u8d44\u6e90\uff0c\u5982\u5185\u5b58\u786c\u76d8\u7b49\u3002\u5982\u679c\u6bcf\u4e2a exe \u90fd\u4e0d\u62c6 dll\uff0c\u90a3\u5185\u5b58\u518d\u591a\u4e5f\u4f1a\u6491\u7206\u3002\u6240\u4ee5 windows \u5bf9\u8fd0\u884c\u5728 ring3 \u5c42\u7684 exe \u505a\u4e86\u8bb8\u591a\u5de5\u4f5c\u3002\u52a0\u8f7d exe \u540e\uff0c\u7cfb\u7edf\u4f1a\u52a0\u8f7d\u6240\u6709 exe import table \u91cc\u9700\u6c42\u7684 dll\uff0c\u7136\u540e\u6267\u884c\u521d\u59cb\u5316\u3002\u540c\u4e00\u8def\u7ecf\u7684 dll \u5982\u6ca1\u88ab\u52a0\u8f7d\u8fc7\uff0c\u4f1a\u88ab windows \u5f00\u51fa\u4e00\u5757\u7269\u7406\u5185\u5b58\u5c06\u5176\u52a0\u8f7d\u8fdb\u53bb\uff0c\u540c\u65f6\u5728 exe \u7684\u7ebf\u6027\u5730\u5740\u91cc\u7684\u9ad8\u4f4d\uff08\u5982 32 \u4f4d\u7a0b\u5e8f\u7684 2g \u9ad8\u4f4d\u5185\u5b58\u5730\u5740\uff09\u505a\u4e00\u4e2a\u6620\u5c04\uff0c\u628a dll \u548c\u8fd9\u4e2a\u5730\u5740\u5173\u8054\u8d77\u6765\u3002\u5f53\u7b2c\u4e8c\u4e2a\u7a0b\u5e8f\u4e5f\u52a0\u8f7d\u540c\u4e00\u4e2a dll \u7684\u65f6\u5019\uff0c\u7531\u4e8e\u5185\u5b58\u4e2d\u5df2\u7ecf\u5b58\u5728\u4e86\uff0c\u4e8e\u662f\u53ea\u9700\u8981\u7ed9 dll \u5f15\u7528\u8ba1\u6570\u52a0 1\uff0c\u518d\u628a dll \u6620\u5c04\u5230\u7b2c\u4e8c\u4e2a exe \u7684\u7ebf\u6027\u5730\u5740\u7684\u9ad8\u4f4d\u5904\u3002\u4f7f\u5f97\u4e24\u4e2a\u7a0b\u5e8f\u4f7f\u7528\u4e86\u540c\u4e00\u4e2a dll\uff0c\u4f46\u7269\u7406\u5185\u5b58\u4e2d\u53ea\u6709\u4e00\u4efd\u62f7\u8d1d\u7684\u7ed3\u679c\uff0c\u8fd9\u6837\u5c31\u8282\u7701\u4e86\u5185\u5b58\uff08\u5b9e\u9645\u8fc7\u7a0b\u6bd4\u8fd9\u4e2a\u590d\u6742\uff0c\u4ee5\u4e0a\u53ea\u662f\u7b80\u8ff0\uff09\u3002<\/p>\n<p>dll \u7684\u52a0\u8f7d\u5206\u9759\u6001\u548c\u52a8\u6001\uff0c\u9759\u6001\u662f\u6307\uff0c\u5728\u7f16\u8bd1 exe \u7684\u65f6\u5019\uff0cimport table \u91cc\uff0c\u5f15\u5165\u8981\u4f7f\u7528\u7684 dll\uff0cwindows \u5728\u52a0\u8f7d exe \u7684\u65f6\u5019\u7acb\u523b\u5c31\u53bb\u52a0\u8f7d dll\uff0c\u5982\u679c dll \u627e\u4e0d\u5230\uff0c\u4f60\u5c31\u4f1a\u770b\u5230\u7ecf\u5e38\u89c1\u5230\u7684\u201c\u627e\u4e0d\u5230 dll\uff0c\u65e0\u6cd5\u542f\u52a8\u7684\u63d0\u793a\u201d\u3002<\/p>\n<p>\u90a3\u4e48 dll \u7684\u52a8\u6001\u52a0\u8f7d\uff0c\u5219\u662f\u5e76\u4e0d\u5b58 dll \u7684\u540d\u79f0\u5230 exe \u7684 import table \u91cc\uff0c\u800c\u662f\u5728\u4ee3\u7801\u91cc\uff0c\u52a8\u6001\u4f7f\u7528 LoadLibrary \u51fd\u6570\u52a0\u8f7d\u3002\u8fd9\u6837\u7a0b\u5e8f\u542f\u52a8\u7684\u65f6\u5019\uff0c\u7cfb\u7edf\u4e0d\u4f1a\u67e5\u627e\u52a0\u8f7d\u8fd9\u4e2a dll\uff0c\u5f53\u7a0b\u5e8f\u9700\u8981\u7528\u5230 dll \u4e2d\u7684\u903b\u8f91\u7684\u65f6\u5019\uff0c\u901a\u8fc7 LoadLibrary \u52a0\u8f7d\u8fdb\u6765\uff0c\u5982\u679c dll \u4e0d\u5b58\u5728\uff0c\u7a0b\u5e8f\u4e5f\u4e0d\u4f1a\u5d29\u6e83\uff0c\u53ef\u4ee5\u4ece\u5bb9\u5904\u7406\u52a0\u8f7d\u5931\u8d25\u7684\u903b\u8f91\u3002<\/p>\n<p>\u90a3\u52a8\u6001\u52a0\u8f7d\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u5f88\u591a\u7528\u6cd5\uff0c\u5176\u4e2d\u4e4b\u4e00\u662f\uff0c\u4f60\u53ef\u4ee5\u5f00\u53d1\u4e00\u4efd\u540c\u65f6\u652f\u6301\u4e2a\u4eba\u7248\u548c\u5546\u4e1a\u7248\u7684\u7a0b\u5e8f\uff0c\u5176\u4e2d\u628a\u5546\u4e1a\u903b\u8f91\u5c01\u88c5\u5230 enterprise.dll \u91cc\uff0c\u628a\u4e2a\u4eba\u7248\u903b\u8f91\u5c01\u88c5\u5230 person.dll \u91cc\uff0c\u901a\u8fc7\u4f60\u5206\u53d1\u7684\u914d\u7f6e\u6216\u8005\u5176\u4ed6\u903b\u8f91\uff0c\u6765\u52a8\u6001\u52a0\u8f7d\u5bf9\u5e94\u903b\u8f91\u7684 dll\uff0c\u5b9e\u73b0\u4e0d\u540c\u7248\u672c\u7684\u5206\u53d1\u3002<\/p>\n<p>\u5f53\u7136\u6709 dll \u7684\u5b58\u5728\u4e5f\u4f7f\u5f97\u4f60\u6709\u673a\u4f1a\u5728\u4e0d\u5168\u90e8\u66f4\u65b0\u6240\u6709\u6587\u4ef6\u7684\u60c5\u51b5\u4e0b\u5bf9\u5927\u578b\u7cfb\u7edf\u6253\u8865\u4e01\u3002\u8bd5\u60f3\u5982\u679c\u6ca1\u6709 dll\uff0cwindows \u7684\u66f4\u65b0\uff0c\u53ef\u80fd\u6bcf\u6b21\u90fd\u8981 20-30g \u5427\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266074\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seeker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             level 1: \u7406\u89e3\u7a0b\u5e8f\u662f\u53ef\u4ee5\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\u7684\uff0c\u6bd4\u5982 exe<br \/>level 2: \u7406\u89e3\u7a0b\u5e8f\u4e5f\u662f\u53ef\u4ee5\u6ca1\u6709 main \u65b9\u6cd5\u7684\uff0c\u6bd4\u5982 dll<br \/>level 3: \u7406\u89e3\u7a0b\u5e8f\u5728\u6267\u884c\u7684\u65f6\u5019\u53ef\u4ee5\u53bb\u8c03\u7528\u5176\u4ed6\u5730\u65b9\u9884\u5148\u5199\u597d\u7684\u4ee3\u7801\u7684\uff0c\u6bd4\u5982 exe \u8fd0\u884c\u65f6\u8f7d\u5165 dll \u6267\u884c dll \u91cc\u9762\u7684\u7a0b\u5e8f<\/p>\n<p>\u4e5f\u8bb8\u4f60\u81ea\u5df1\u6ca1\u6709\u76f4\u63a5\u7528 dll \u4f46\u5b9e\u9645\u4e0a\u4f60\u53ef\u80fd\u5df2\u7ecf\u5728\u7528 windows\/linux\/mac \u7cfb\u7edf\u7684\u5404\u79cd dll\/so\/dylib \u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266075\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : paradoxs <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dll \u5c31\u662f\u4e2a\u540e\u7f00\uff0c\u4f60\u559c\u6b22\u7684\u8bdd\u6539\u4e3a XXX \u4e5f\u4e00\u6837\u7528\u3002<\/p>\n<p>\u5206\u5272\u6210\u4e0d\u540c\u7684\u6a21\u5757\uff0c\u6309\u9700\u8c03\u7528\uff0c\u5c31\u4e0d\u7528\u4e00\u6b21\u8fc7\u5168\u90e8\u52a0\u8f7d\u554a\uff0c\u51cf\u8f7b\u538b\u529b\u3002<\/p>\n<p>\u4e0d\u7136\u4e00\u4e2a exe \u51e0\u4e2a G \u4f60\u53d7\u5f97\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : IgniteWhite <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             windows \u7684 dll \u548c mac \u7684 dylib \u5728\u591a\u5927\u7a0b\u5ea6\u4e0a\u80fd\u5bf9\u5e94\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 3dwelcome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             so \u53ef\u4ee5\u505a\u5230 native \u4ee3\u7801\u7684\u70ed\u66f4\u65b0\uff0c\u8fd9\u662f\u65e0\u4e0e\u4f26\u6bd4\u7684\u4f18\u52bf\u3002<br \/>dll \u8fd9\u70b9\u8fd8\u662f\u6b20\u7f3a\u4e86\u4e00\u4e9b\u3002\u5fae\u8f6f\u4e00\u822c\u4e0d\u9760 dll \u800c\u662f\u7528 com interface \u591a\u3002<br \/>dll \u53ea\u80fd\u8bf4\uff0c\u53ef\u4ee5\u4ee3\u7801\u590d\u7528\u3002\u7ed9\u522b\u4eba\u53ef\u4ee5\u4e0d\u5f00\u653e\u6e90\u7801\uff0c\u53ea\u7ed9 lib \u6587\u4ef6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266078\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mutoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u8fd1\u770b\u4e86\u8fd9\u672c\u4e66\uff0c\u5173\u4e8e\u7f16\u8bd1\u3001\u88c5\u8f7d\u4e0e\u5e93\u7684\uff0c\u8bb2\u89e3\u5f97\u633a\u4e0d\u9519\uff1a<br \/>https:\/\/book.douban.com\/subject\/3652388\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jim9606 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4e0d\u7528\u52a8\u6001\u5e93 \/\u9759\u6001\u5e93\uff0c\u5c31\u610f\u5473\u7740\u53ea\u80fd\u901a\u8fc7 IPC \u7684\u65b9\u5f0f\u8fdb\u884c\u4ea4\u4e92\u548c\u63a7\u5236\uff0c\u4ea4\u4e92\u65b9\u6cd5\u4f1a\u4e25\u91cd\u53d7\u9650\u3002\u9664\u4e86\u4e2a\u522b\u7b80\u5355\u573a\u666f\uff0c\u5927\u90e8\u5206\u65f6\u5019\u4f1a\u63d0\u9ad8\u5f00\u53d1\u96be\u5ea6\u3002<\/p>\n<p>\u4f8b\u5982\u4ea4\u6362\u6570\u636e\u9700\u8981\u5e8f\u5217\u5316\u4e3a\u5b57\u8282\u6d41\u518d\u901a\u8fc7 pipe \u4f20\u9012\uff0c\u6536\u56de\u6765\u518d\u53cd\u5e8f\u5217\u5316\u3002\u53ef\u80fd\u53ea\u80fd\u4f7f\u7528\u540c\u6b65\u8c03\u7528\u3002\u5982\u679c\u88ab\u8c03\u7528\u65b9\u51fa\u9519\u4f60\u8fd8\u5f97\u89e3\u6790\u8fd4\u56de\u7801\u751a\u81f3\u6ca1\u6709 API \u7a33\u5b9a\u6027\u4fdd\u8bc1\u7684 stderr \u8f93\u51fa\u6765\u4e86\u89e3\u51fa\u9519\u539f\u56e0\u3002<\/p>\n<p>\u5982\u679c\u9700\u8981\u591a\u7ebf\u7a0b\u64cd\u4f5c\uff0c\u8fd8\u5f97\u5f00\u591a\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u5e76\u5404\u81ea\u7ef4\u62a4\u7ba1\u9053\uff0c\u8fd8\u5f97\u6b63\u786e\u5206\u53d1\u6536\u5230\u7684\u4fe1\u53f7\u91cf\u5230\u5404\u4e2a\u63a7\u5236\u6d41\u4e2d\u3002\u4e00\u4e2a\u63a7\u5236\u6d41\u88ab\u5206\u6563\u5230\u82e5\u5e72\u4e2a\u76f8\u4e92\u4f9d\u8d56\u7684\u5904\u7406\u51fd\u6570\u4e2d\uff0c\u7ef4\u62a4\u5f88\u9ebb\u70e6\u3002<\/p>\n<p>\u5bf9\u4e8e\u6709\u6027\u80fd\u9700\u6c42\u7684\u573a\u666f\uff0cIPC \u589e\u52a0\u7684\u591a\u6b21\u4e0a\u4e0b\u6587\u5207\u6362 \/\u8fdb\u7a0b\u8c03\u5ea6 \/\u5185\u5b58\u590d\u5236\u7b49\u5f00\u9500\u4f1a\u964d\u4f4e\u6027\u80fd\u3002<\/p>\n<p>\u5982\u679c\u7528\u5e93\u64cd\u4f5c\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 C \u51fd\u6570\u8c03\u7528\u76f4\u63a5\u4f20\u9012\u7ed3\u6784\u5316\u7684\u6570\u636e\uff0c\u514d\u53bb\u4e0a\u4e0b\u6587\u5207\u6362\u548c\u5185\u5b58\u590d\u5236\u7684\u5f00\u9500\uff0c\u7528\u5e93\u63d0\u4f9b\u7684 handler \u7ed3\u6784\u4f53\u63a7\u5236\u4efb\u52a1\u548c\u8d44\u6e90\u6240\u5f52\u5c5e\u7684\u63a7\u5236\u6d41\uff0c\u8fd8\u80fd\u652f\u6301\u5f02\u6b65\u8c03\u7528\u3002<\/p>\n<p>\u7f29\u5c0f\u4f9d\u8d56\u4e5f\u662f\u597d\u5904\u4e4b\u4e00\uff0c\u4f8b\u5982 ffmpeg \u5305\u62ec avformat \u3001avcodec \u3001avfilters \u3001avdevice \u7b49\u5b50\u5e93\uff0c\u5982\u679c\u53ea\u662f\u505a\u4e2a\u7f16\u89e3\u7801\u53ea\u9700\u4f9d\u8d56 avcodec\uff0c\u5982\u679c\u9700\u8981\u5a92\u4f53\u5bb9\u5668\u5206\u79bb \/\u6df7\u6d41\u9700\u8981 avformat\uff0c\u5269\u4e0b\u6ca1\u7528\u6389\u7684\u90e8\u5206\u53ef\u4ee5\u7701\u6389\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kaedea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ELF \u6587\u4ef6\u7684 Lazy Load                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imdong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             exe \u4e0e dll \u989d\u5173\u7cfb\u6709\u70b9\u7c7b\u4f3c\u4e8e \u7a0b\u5e8f\u4e0e class (\u5305,\u5e93,\u7c7b)\u7684\u6982\u5ff5.<\/p>\n<p>\u800c exe \u4e0e exe \u76f8\u4e92\u8c03\u7528\u7684\u8bdd,\u5c31\u6709\u70b9 API (\u63a5\u53e3,\u5fae\u670d\u52a1) \u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u7684\u5173\u7cfb\u4e86.<\/p>\n<p>\u663e\u7136 dll so class \u5305 \u4e4b\u7c7b\u7684\u4f7f\u7528\u4e0a\u66f4\u4fbf\u6377, \u8c03\u7528 API \u4f1a\u6709\u66f4\u591a\u989d\u5916\u7684\u5f00\u9500.<\/p>\n<p>\u81f3\u4e8e exe \u4e0e dll \u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u7684\u539f\u7406,\u53ea\u77e5\u9053\u662f\u5e95\u5c42\u652f\u6301,\u4e0e include \u4e00\u6837?\u66f4\u591a\u7684\u6211\u4e5f\u4e0d\u719f\u6089\u4e86.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6362\u4e2a\u89d2\u5ea6\uff0c\u4f60\u4e0d\u89c9\u5f97\u62fc\u63a5\u5b57\u7b26\u4e32\u518d popen \u5f88\u50bb\u5417\u3002\u3002\u3002<br \/>\u76f4\u63a5\u4e00\u4e2a\u51fd\u6570\u8c03\u7528\u53c2\u6570\u8212\u670d\u7684\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5266083\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : adofsauron <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7a0b\u5e8f\u5458\u7684\u81ea\u6211\u4fee\u517b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7a0b\u5e8f\u8c03\u7528 dll \u7684\u672c\u8d28\u662f\u4ec0\u4e48\uff1f &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340702"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=340702"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340702\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340702"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}