{"id":37,"date":"2007-11-14T22:49:14","date_gmt":"2007-11-14T14:49:14","guid":{"rendered":"http:\/\/tmp.xujiwei.com\/blog\/?p=37"},"modified":"2010-01-28T21:24:24","modified_gmt":"2010-01-28T13:24:24","slug":"start-application-in-windows-mobile","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2007\/11\/start-application-in-windows-mobile\/","title":{"rendered":"Windows Mobile \u4e2d\u542f\u52a8\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p>Windows\u00a0Mobile\u4e0b\u9762Java\u4e00\u76f4\u6ca1\u6709\u6bd4\u8f83\u597d\u7684\u6a21\u62df\u5668\uff0c\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\u7684JMM\u6700\u65b0\u7248\uff0c\u89c9\u5f97\u4e0d\u9519\uff0c\u4f46\u662f\u6709\u4e9b\u7a0b\u5e8f\u8fd8\u662f\u4e0d\u80fd\u8fd0\u884c\uff0c\u5c31\u53bb\u4e0b\u4e86\u4e2aJBed\uff0c\u4f46\u662f\u5728JBed\u4e2d\u5b89\u88c5\u7a0b\u5e8f\u65f6\u4f1a\u641c\u7d22\u5361\uff0c\u611f\u89c9\u6bd4\u8f83\u8d39\u65f6\uff0c\u7528Resco\u00a0Explorer\u7528JBed\u5e26\u53c2\u6570\u6253\u5f00\u65f6\uff0c\u53c8\u5b89\u88c5\u4e0d\u4e86\uff0c\u56e0\u4e3a\u9700\u8981\u52a0\u989d\u5916\u7684\u53c2\u6570-ginstall\uff0cResco\u00a0Explorer\u4e0d\u652f\u6301\u3002<\/p>\n<p>\u53e6\u5916\u4e00\u79cd\u65b9\u6cd5\u5c31\u662f\u628a\u00a0.jar\u00a0\u6587\u4ef6\u7684\u5173\u8054\u6539\u5230JBed\uff0c\u4e0d\u8fc7\u5e73\u65f6\u4e3b\u8981\u7528\u7684JMM\uff0c\u4e0d\u60f3\u6539\u6389\u5173\u8054\uff0c\u6240\u4ee5\u60f3\u7740\u5199\u4e2a\u7a0b\u5e8f\uff0c\u4f5c\u4e3a\u4ee3\u7406\uff0c\u5728Resco\u00a0Explorer\u91cc\u628a\u00a0.jar\u00a0\u6587\u4ef6\u7684\u8def\u5f84\u4f20\u7ed9\u8fd9\u4e2a\u4ee3\u7406\uff0c\u518d\u901a\u8fc7\u8fd9\u4e2a\u7a0b\u5e8f\u5e26\u53c2\u6570\u542f\u52a8\u00a0JBed\u00a0\u6765\u5b89\u88c5\u3002<\/p>\n<p>\u8981\u505a\u5230\u8fd9\u4e9b\uff0c\u5c31\u9700\u8981\u5728\u8fd9\u4e2a\u4ee3\u7406\u4e2d\u542f\u52a8\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\uff0c\u7b2c\u4e00\u6b21\u5199Windows\u00a0Mobile\u4e0b\u9762\u7684\u7a0b\u5e8f\uff0c\u4e0d\u8fc7\u90fd\u662f\u5fae\u8f6f\u4e00\u5bb6\u4eba\uff0c\u4e5f\u4e0d\u662f\u9ebb\u70e6\uff0c\u5728Google\u4e0a\u627e\u4e86\u8d44\u6599\uff0c\u53d1\u73b0\u53ef\u4ee5\u7528\u00a0ShellExecuteEx\u00a0\u6765\u542f\u52a8\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u5c31\u5f00\u5199\u4e86\u3002<\/p>\n<p>\u7a0b\u5e8f\u7684\u4e3b\u8981\u4ee3\u7801\u5c31\u4e00\u6bb5\uff0c\u529f\u80fd\u5c31\u662f\u63a5\u53d7\u53c2\u6570\uff0c\u542f\u52a8\u00a0JBed\u3002<\/p>\n<blockquote><p>wchar_t* param;<br \/>\nparam = (wchar_t*) LocalAlloc(LPTR, 255);<br \/>\nwsprintf(param, _T(\"-ginstall \\\"file:\\\\%s\\\"\"), lpCmdLine);<br \/>\nSHELLEXECUTEINFO execInfo;<br \/>\nZeroMemory(&execInfo, sizeof(execInfo));<br \/>\nexecInfo.cbSize = sizeof(execInfo);<br \/>\nexecInfo.lpFile = _T(\"\\\\Storage Card\\\\J\\\\jbed.exe\");<br \/>\nexecInfo.lpParameters = param;<br \/>\nexecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;<br \/>\nexecInfo.lpVerb = _T(\"open\");<br \/>\nShellExecuteEx(&execInfo);<\/p><\/blockquote>\n<p>\u56e0\u4e3a\u89c9\u5f97\u7528 .NET \u7684\u8bdd\uff0c\u7a0b\u5e8f\u7684\u542f\u52a8\u901f\u5ea6\u592a\u6162\uff0c\u6240\u4ee5\u5c31\u7528\u4e86 C++ \u6765\u5199\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u00a0Mobile\u4e0b\u9762Java\u4e00\u76f4\u6ca1\u6709\u6bd4\u8f83\u597d\u7684\u6a21\u62df\u5668\uff0c\u7528\u4e86\u4e00\u6bb5\u65f6\u95f4\u7684J &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2007\/11\/start-application-in-windows-mobile\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[39],"tags":[41,40],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}