{"id":710,"date":"2023-02-07T10:05:47","date_gmt":"2023-02-07T02:05:47","guid":{"rendered":"http:\/\/39.104.58.144\/?page_id=710"},"modified":"2023-02-07T10:17:14","modified_gmt":"2023-02-07T02:17:14","slug":"gsm-driver","status":"publish","type":"page","link":"http:\/\/www.algmain.com\/index.php\/simpleteam\/gsm-driver\/","title":{"rendered":"GSM\u6a21\u5757\u77ed\u4fe1\u606f\u9a71\u52a8"},"content":{"rendered":"\n<p>SimplePCConnect\u662fSimpleTeam\u63d0\u4f9b\u7684\u4e00\u6b3e\u514d\u8d39\u7684GSM\u6a21\u5757\u77ed\u4fe1\u606f\u9a71\u52a8\u7a0b\u5e8f\u3002\u8be5\u9a71\u52a8\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u7ea2\u5916\u7ebf\u6216\u6570\u636e\u7ebf\u65b9\u5f0f\u9a71\u52a8\u591a\u79cd\u4f7f\u7528 AT Command\u7684\u8bbe\u5907\uff0c\u4f8b\u5982\uff1aNokia\u3001NEC\u3001Siemens\u3001WaveCOM\u7b49\u7b49\u3002\u901a\u8fc7\u8be5\u9a71\u52a8\u7a0b\u5e8f\uff0c\u7528\u6237\u53ef\u4ee5\u53d1\u9001\u4e2d\u6587(\u666e\u901a\u6216\u514d\u63d0)\u548c\u82f1\u6587\u77ed\u4fe1\u606f\u3002\u7b2c\u4e8c\u4ee3\u9a71\u52a8\u4e3b\u8981\u589e\u52a0\u4e86\u5bf9\u4e8c\u8fdb\u5236\u6570\u636e\u3001WAP Push ( Service Indication \/ Service Loading ) \u3001WAP Bookmark\u3001GPRS Setting\u3001MMS Indication\u548c\u5c0f\u7075\u901a\u77ed\u4fe1\u7684\u652f\u6301\u3002<\/p>\n\n\n\n<p>\u63d0\u4f9b\u7684\u9a71\u52a8\u7a0b\u5e8f\u4e3aDLL\u6587\u4ef6\uff0c\u9002\u5408\u8c03\u7528\u7684\u7a0b\u5e8f\u6709\uff1aVisual Basic\u3001C++ Builder\u3001Visual C&amp;C++\u3001Delphi\u3001Java\u7b49\u7b49\u3002\u53e6\u5916\u9644\u4ef6\u4e2d\u8fd8\u63d0\u4f9b\u4e86\u76f8\u5173\u7684Visual Basic\u5f00\u53d1\u6e90\u4ee3\u7801\u4ee5\u53ca\u51fd\u6570\u8be6\u7ec6\u8bf4\u660e\u3002\u6700\u65b0\u7248\u672c\u7684\u9a71\u52a8\u5b8c\u5168\u514d\u8d39\uff0c\u4f7f\u7528\u548c\u5f00\u53d1\u4e0a\u6ca1\u6709\u4efb\u4f55\u9650\u5236\uff0c\u4e5f\u4e0d\u9700\u8981\u8f6f\u4ef6\u6388\u6743\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb\u8fd9\u91cc\u53ef\u4ee5\u4e0b\u8f7d\u8be5\u7a0b\u5e8f\uff1a<a href=\"http:\/\/algmain.com\/downloads\/SimplePCConnect2.zip\">SimplePCConnect2.zip<\/a>\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u7b80\u5355\u4ecb\u7ecd<\/h2>\n\n\n\n<p>Simple PC Connect\u662f\u91c7\u7528Visual C&amp;C++ 6.0\u6240\u7f16\u5199\u7684\u52a8\u6001\u8fde\u63a5\u8c03\u7528\u5e93\u3002\u8be5\u6a21\u5757\u4e2d\u5305\u542b\u4e86Windows\u4e0b\u7684\u4e32\u53e3\u8c03\u7528\u3001AT\u6307\u4ee4\u9a71\u52a8\u4ee5\u53ca\u77ed\u4fe1\u606fPDU\u683c\u5f0f\u7684\u7f16\u7801\u548c\u89e3\u7801\u5668\u7b49\u529f\u80fd\u3002\u8c03\u7528\u8be5\u6a21\u5757\u4e2d\u7684\u6807\u51c6\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u9a71\u52a8\u591a\u79cd\u517c\u5bb9AT\u6307\u4ee4\u7684GSM\u8bbe\u5907\u3002\u8fd9\u4e9bGSM\u8bbe\u5907\u5305\u62ec\u7edd\u5927\u591a\u6570Nokia\u624b\u673a\uff08\u4f8b\u5982\uff1a5110\u30016210\u7b49\u7b49\uff09\u3001NEC\u3001WaveCOM\u6a21\u5757\u3001Falcom\u6a21\u5757\u7b49\u7b49\u8bbe\u5907\uff0c\u5b9e\u73b0\u77ed\u4fe1\u606f\u7684\u6536\u53d1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u529f\u80fd\u4ecb\u7ecd<\/h2>\n\n\n\n<p>\uff081\uff09\u4f7f\u7528Visual C&amp;C++ 6.0\u7f16\u5199\u6210DLL\u6a21\u5757\uff0c\u53ef\u4ee5\u901a\u8fc7Visual C&amp;C++\u6216Visual Basic\u7b49\u5176\u4ed6\u7a0b\u5e8f\u5b9e\u73b0\u8c03\u7528\u3002<br>\uff082\uff09\u5185\u90e8\u51fd\u6570\u7b80\u5355\u6613\u7528\uff0c\u53ef\u4ee5\u5341\u5206\u5bb9\u6613\u5730\u5b9e\u73b0\u77ed\u4fe1\u606f\u7684\u6536\u53d1\u3002<br>\uff083\uff09\u5185\u90e8\u652f\u6301Unicode 8Bit\u548c7Bit\u7f16\u7801\/\u89e3\u7801\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e2d\u6587\/\u82f1\u6587\u77ed\u4fe1\u606f\u7684\u6536\u53d1\u3002<br>\uff084\uff09\u5185\u90e8\u652f\u6301\u4e8c\u8fdb\u5236\u6570\u636e\u3001WAP Push\uff08Service Indication \/ Service Loading\uff09\u3001WAP Bookmark\u3001GPRS Setting\u548cMMS Indication\u7b49\u7279\u6b8a\u77ed\u4fe1\u606f\u3002<br>\uff085\uff09\u652f\u6301\u4ee5\u7ea2\u5916\u7ebf\u6216\u6570\u636e\u7ebf\u7684\u65b9\u5f0f\u9a71\u52a8\u517c\u5bb9AT\u6307\u4ee4\u7684GSM\u8bbe\u5907\u3002<br>\uff086\uff09\u652f\u6301\u4e0e\u786c\u4ef6\u8bbe\u5907\u7684\u76f8\u4e92\u7ed1\u5b9a\uff0c\u9632\u6b62\u8f6f\u4ef6\u88ab\u975e\u6cd5\u62f7\u8d1d\u5e76\u5e94\u7528\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u51fd\u6570\u4ee5\u53ca\u8bf4\u660e<\/h2>\n\n\n\n<p>Simple PC Connect\u6a21\u5757\u7684\u51fd\u6570\u4e00\u5171\u53ef\u4ee5\u5206\u4e3a\u4e09\u7c7b\u51fd\u6570\uff1a\u6a21\u5757\u521d\u59cb\u5316\u51fd\u6570\u3001\u8fde\u63a5\u7ba1\u7406\u51fd\u6570\u548c\u53d1\u9001\u63a5\u6536\u51fd\u6570\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.1 \u6a21\u5757\u521d\u59cb\u5316\u51fd\u6570<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.1.1 \u53d6\u5f97\u6a21\u5757\u76f8\u5173\u4fe1\u606f<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Get the information string of the dll moudle.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LPCTSTR _stdcall GetModuleInformation();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011\u83b7\u5f97\u4e00\u4e2aDLL\u6a21\u5757\u63cf\u8ff0\u7684\u5b57\u7b26\u4e32\uff08\u4ee5\u2019\\0\u2019\u7ed3\u5c3e\uff09\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8be5\u51fd\u6570\u53ef\u4ee5\u968f\u65f6\u8c03\u7528\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1.2 \u521d\u59cb\u5316\u6a21\u5757<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Initialize the module.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall InitializePCConnect(UINT nInitializeStatus);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5728Debug\u7248\u672c\u4e2d\uff0c\u8be5\u51fd\u6570\u4e2d\u5c06\u521d\u59cb\u5316\u4e00\u4e2a\u65e5\u5fd7\u51fd\u6570\u3002\u5982\u679c\u80fd\u591f\u6210\u529f\u5730\u6253\u5f00\u65e5\u5fd7\u6587\u4ef6\uff0c\u90a3\u4e48\u8be5\u51fd\u6570\u5c06\u8fd4\u56deTRUE\uff0c\u5426\u5219\u8fd4\u56deFALSE\u3002\u5728Release\u7248\u672c\u4e2d\u6ca1\u6709\u5982\u4e0a\u7684\u5904\u7406\u8fc7\u7a0b\uff0c\u6574\u4e2a\u51fd\u6570\u76f4\u63a5\u8fd4\u56deTRUE\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u5728\u5f00\u59cb\u4f7f\u7528\u6a21\u5757\u7684\u76f8\u5173\u51fd\u6570\u4e4b\u524d\uff0c\u8bf7\u5148\u8c03\u7528\u8be5\u51fd\u6570\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5728Visual Basic\u4e2d\u7684Boolean\u548cBOOL\u578b\u53ef\u80fd\u6709\u4e00\u5b9a\u7684\u5dee\u5f02\u3002\u56e0\u6b64\uff0c\u91c7\u7528Native Code\u7f16\u8bd1\u540e\u7684\u4ee3\u7801\u5728\u8fd0\u884c\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u51fa\u73b0\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528\u7684\u95ee\u9898\u3002\u6b64\u65f6\u91c7\u7528P-Code\u7f16\u8bd1\u5373\u53ef\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1.3 \u5378\u8f7d\u6a21\u5757<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Uninitialize the module.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall UninitializePCConnect();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5173\u95ed\u6240\u6709\u8bbe\u5907\uff0c\u5e76\u91ca\u653e\u5df2\u5206\u914d\u7684\u5185\u5b58\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u5728\u5378\u8f7d\u6a21\u5757\u4e4b\u524d\u5fc5\u987b\u8c03\u7528\u8be5\u51fd\u6570\u3002\u8fd9\u6837\u53ef\u4ee5\u5173\u95ed\u5fd8\u8bb0\u5173\u95ed\u7684\u8bbe\u5907\u548c\u91ca\u653e\u5df2\u5206\u914d\u7684\u5185\u5b58\u3002\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u4e32\u53e3\u88ab\u957f\u65f6\u95f4\u5360\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.2 \u8bbe\u5907\u8fde\u63a5\u7ba1\u7406<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.2.1 \u521d\u59cb\u5316\u8fde\u63a5<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Open the connection with the PC.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall OpenPCConnect(UINT nDeviceNumber,LPCTSTR lpszLicence,LPCTSTR lpszSCA);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8be5\u51fd\u6570\u5c06\u6253\u5f00nDeviceNumber\u6240\u6307\u5b9a\u7684\u4e32\u53e3\uff0c\u5e76\u8bfb\u53d6\u8bbe\u5907\u7684\u76f8\u5173\u53c2\u6570\u3002\u5982\u679c\u67d0\u4e9b\u53c2\u6570\u4e0d\u5728\u8303\u56f4\u5185\uff0c\u90a3\u4e48\u8be5\u51fd\u6570\u5c06\u8fd4\u56de\u521d\u59cb\u5316\u5931\u8d25\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8be5\u51fd\u6570\u4f1a\u6253\u5f00\u4e32\u53e3\uff0c\u5e76\u4e14\u521d\u59cb\u5316\u8be5\u4e32\u53e3\u3002\u5728\u4f7f\u7528\u5b8c\u6210\u540e\uff0c\u4e00\u5b9a\u8981\u8c03\u7528ClosePCConnect\u5173\u95ed\u8be5\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5982\u679clpszLicence\u4e0d\u586b\u5199\u6216\u8005\u586b\u5199\u4e0d\u6b63\u786e\uff0c\u5c06\u4e0d\u5f71\u54cd\u8fde\u63a5\u7684\u6253\u5f00\u8fc7\u7a0b\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u77ed\u4fe1\u606f\u4e2d\u5fc3\u5982\u679c\u4e0d\u8bbe\u7f6e\uff0c\u90a3\u4e48\u8be5\u51fd\u6570\u5c06\u8bd5\u56fe\u4ece\u8bbe\u5907\u4e2d\u8bfb\u53d6\u3002\u5982\u679c\u8bbe\u5907\u4e2d\u4e5f\u6ca1\u6709\u8bbe\u7f6e\uff0c\u90a3\u4e48\u8bbe\u5907\u5c06\u8fd4\u56de\u521d\u59cb\u5316\u5931\u8d25\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u5f15\u8d77\u8bbe\u5907\u521d\u59cb\u5316\u5931\u8d25\u7684\u539f\u56e0\u6bd4\u8f83\u591a\uff0c\u4f8b\u5982\uff1a\u4e32\u53e3\u5c1a\u672a\u8fde\u63a5\u3001\u7535\u6e90\u6ca1\u6709\u8fde\u63a5\u3001\u975eAT\u517c\u5bb9\u8bbe\u5907\u3001SIM\u5361\u6ca1\u63d2\u4e0a\u3001\u8bfb\u53d6\u5e8f\u5217\u53f7\u5931\u8d25\u3001\u8bfb\u53d6\u77ed\u4fe1\u606f\u4e2d\u5fc3\u5931\u8d25\u7b49\u7b49\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2.2 \u91cd\u65b0\u6253\u5f00\u8fde\u63a5<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Reopen the connection with the PC.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall ReopenPCConnect(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u91cd\u65b0\u5feb\u901f\u521d\u59cb\u5316\u5df2\u7ecf\u51fa\u73b0\u4e25\u91cd\u9519\u8bef\u7684\u8bbe\u5907\uff08\u8be5\u8bbe\u5907\u5df2\u7ecf\u6253\u5f00\uff0c\u5728\u4f7f\u7528\u4e2d\u53d1\u751f\u4e25\u91cd\u9519\u8bef\uff09\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8be5\u51fd\u6570\u4ec5\u5728\u8bbe\u5907\u51fa\u73b0\u4e25\u91cd\u9519\u8bef\u7684\u65f6\u5019\u624d\u4f7f\u7528\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5176\u4ed6\u65f6\u5019\u4f7f\u7528\u4e5f\u6709\u6548\uff0c\u4f46\u662f\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u4e0d\u8981\u5728\u53d1\u9001\u548c\u63a5\u6536\u8fc7\u7a0b\u5b8c\u6210\u4e4b\u524d\u4f7f\u7528\u8be5\u51fd\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2.3 \u5173\u95ed\u8fde\u63a5<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Close the connection with the PC.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall ClosePCConnect(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5173\u95ed\u6307\u5b9a\u8bbe\u5907\uff0c\u5e76\u91ca\u653e\u5df2\u5206\u914d\u7684\u5185\u5b58\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u5728\u4f7f\u7528OpenPCConnect\u5efa\u7acb\u8fde\u63a5\u540e\uff0c\u90fd\u8981\u4f7f\u7528ClosePCConnect\u5b9e\u73b0\u5173\u95ed\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09ClosePCConnect\u53ea\u80fd\u5173\u95ed\u6240\u6307\u5b9a\u7684\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u8bbe\u5907\u5173\u95ed\uff0c\u8fde\u63a5\u4e5f\u968f\u5373\u5173\u95ed\u3002\u6b64\u540e\u5c06\u4e0d\u80fd\u5728\u4f7f\u7528\u53d1\u9001\u548c\u63a5\u6536\u51fd\u6570\u64cd\u4f5c\u8be5\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u4e0d\u8981\u5728\u53d1\u9001\u6216\u63a5\u6536\u8fc7\u7a0b\u5b8c\u6210\u4e4b\u524d\u4f7f\u7528\u8be5\u51fd\u6570\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2.4 \u83b7\u5f97\u8bbe\u5907\u6388\u6743\u72b6\u6001<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Get the authorization.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall GetAuthorization(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u83b7\u5f97\u5df2\u6253\u5f00\u8bbe\u5907\u7684\u6388\u6743\u72b6\u6001\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u5728\u6253\u5f00\u8bbe\u5907\u7684\u65f6\u5019\uff0c\u8bf7\u4f7f\u7528\u6b63\u786e\u7684lpszLicence\u5c06\u8bbe\u5907\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2.5 \u68c0\u67e5\u8bbe\u5907\u662f\u5426\u652f\u6301AT\u6307\u4ee4<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Detect the connection with the PC.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL DetectPCConnect(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u83b7\u5f97\u5df2\u6253\u5f00\u8bbe\u5907\u7684\u6388\u6743\u72b6\u6001\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8bf7\u5728\u8be5\u8bbe\u5907\u6253\u5f00\u4e4b\u524d\u4f7f\u7528\u8be5\u68c0\u6d4b\u6307\u4ee4\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.3 \u5185\u5bb9\u7ba1\u7406\u51fd\u6570<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.3.1 \u53c2\u6570\u8bbe\u7f6e\u51fd\u6570<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set status receipt requested.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall SetStatusReceiptRequested(BOOL bStatusReceiptRequested);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set reject duplicated.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall SetRejectDuplicated(BOOL bRejectDuplicated);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set protocol identification.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall SetProtocolIdentification(BYTE bProtocolIdentification);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u901a\u8fc7\u6536\u6761\u5728\u5f88\u5927\u7a0b\u5ea6\u83b7\u5f97\u7528\u6237\u7684\u63a5\u6536\u60c5\u51b5\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u4e00\u822c\u6765\u8bf4\u4e0d\u7528\u62d2\u7edd\u91cd\u590d\u7684MR\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u5e94\u7528\u534f\u8bae\u7c7b\u578b\u5728\u67d0\u4e9b\u7279\u6b8a\u77ed\u4fe1\u606f\u7684\u65f6\u5019\u4f1a\u7528\u5230\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u8fd9\u4e9b\u53c2\u6570\u5e94\u5f53\u5728\u8bbe\u7f6e\u5185\u5bb9\uff08SetXXXContent\uff09\u4e4b\u524d\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.3.2 \u5185\u5bb9\u8bbe\u7f6e\u51fd\u6570<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set the content into the list.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetUTF8Content(LPCTSTR lpszContent,BOOL bImmediateDisplay);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall Set7BitContent(LPCTSTR lpszContent);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetBinaryContent(LPCTSTR lpszContent,BOOL bHeaderIndication);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8bbe\u5b9a\u5f85\u53d1\u9001\u7684\u5185\u5bb9\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09SetUTF8BitContent\u80fd\u591f\u8bbe\u7f6e\u4e2d\u6587\u6216\u8005\u4e2d\u82f1\u6df7\u5408\uff0c\u751a\u81f3\u662f\u5176\u4ed6\u8bed\u8a00\u7684\u77ed\u4fe1\u606f\u3002\u4f46\u662f\u5185\u5bb9\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc770\u4e2aUnicode\u5b57\u7b26\u3002\u5982\u679c\u8d85\u8fc7\uff0c\u5219\u8be5\u51fd\u6570\u8fd4\u56deFALSE\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09Set7BitContent\u662f\u7528\u6765\u53d1\u9001\u7eafASCII\u7801\u7684\u77ed\u4fe1\u606f\u3002\u5185\u5bb9\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc7160\u4e2aASCII\u7801\u3002\u5982\u679c\u8d85\u8fc7\uff0c\u5219\u8be5\u51fd\u6570\u8fd4\u56deFALSE\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u5982\u679c\u5bf9\u591a\u4eba\u5b9e\u884c\u7fa4\u53d1\uff0c\u5185\u5bb9\u5728\u6bcf\u6b21\u53d1\u9001\u7684\u65f6\u5019\u53ea\u9700\u8981\u8bbe\u7f6e\u4e00\u6b21\u5373\u53ef\u3002\u8fd9\u6837\u7b80\u5316\u53d1\u9001\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.3.3 \u5185\u5bb9\u6e05\u7406\u51fd\u6570<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Clear the content.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void _stdcall ClearContent();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6e05\u7406\u8bbe\u5b9a\u5f85\u53d1\u9001\u7684\u5185\u5bb9\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8be5\u51fd\u6570\u5c06\u6e05\u7406\u6240\u6709\u7684\u76f8\u5173\u5185\u5bb9\uff0c\u4f7f\u8bbe\u5b9a\u5185\u5bb9\u81ea\u52a8\u6e05\u7a7a\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.3.4 WAP\u529f\u80fd\u51fd\u6570<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set the wap push into the list.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetWAPPushService(LPCTSTR lpszReference,LPCTSTR lpszDescription,BOOL bImmediately);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set the wap bookmark into the list.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetWAPPushBookmark(LPCTSTR lpszReference,LPCTSTR lpszDescription);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set the gprs settting into the list.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetWAPGPRSSetting(LPCTSTR lpszReference,LPCTSTR lpszDescription);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Set the mms indication into the list.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SetWAPMMSIndication(LPCTSTR lpszFrom,UINT nSize,LPCTSTR lpszReference);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u4ece\u4e0a\u81f3\u4e0b\u5206\u522b\u8bbe\u5b9aWAP Push\u670d\u52a1\uff0cWAP Push\u4e66\u7b7e\u548cWAP GPRS\u8bbe\u5b9a\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09URL\u5730\u5740\u4e00\u5b9a\u8981\u4f7f\u7528http:\/\/\u6216\u8005https:\/\/\u5f00\u5934\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u5f02\u5e38\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.4 \u77ed\u4fe1\u6536\u53d1\u51fd\u6570<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.4.1 \u53d1\u9001\u77ed\u4fe1\u606f<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Send the content.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/If not authenticated, then send the advertise at the end of the sending.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall SendContent(UINT nDeviceNumber,LPCTSTR lpszTerminalAddress);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5c06\u4fdd\u5b58\u7684\u5185\u5bb9\u53d1\u9001\u5230\u6307\u5b9a\u7684\u7528\u6237\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u5728\u53d1\u9001\u524d\uff0c\u8bf7\u5148\u786e\u8ba4\u8bbe\u5907\u5df2\u7ecf\u6253\u5f00\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5982\u679c\u53d1\u9001\u6210\u529f\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728GetStatus\u51fd\u6570\u4e2d\u5f97\u5230Status = 3\u7684\u72b6\u6001\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u5982\u679c\u53d1\u9001\u5931\u8d25\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728GetStatus\u51fd\u6570\u4e2d\u5f97\u5230\u5176\u4ed6\u7684\u72b6\u6001\u6570\u503c\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u5982\u679c\u6240\u9700\u8981\u53d1\u9001\u7684\u5185\u5bb9\u88ab\u5206\u4e3a\u591a\u6761\uff0c\u90a3\u4e48\u53ea\u8981\u6709\u4e00\u6761\u53d1\u9001\u5931\u8d25\uff0c\u90a3\u4e48\u5c31\u76f4\u63a5\u8fd4\u56deFALSE\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff085\uff09\u53d1\u9001\u51fd\u6570\u4e0e\u63a5\u6536\u51fd\u6570\u4e4b\u95f4\u5df2\u7ecf\u5b9e\u73b0\u4e86\u51fd\u6570\u540c\u6b65\u5904\u7406\uff0c\u56e0\u6b64\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u7ebf\u7a0b\u4e2d\u8c03\u7528\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff086\uff09\u4e00\u822c\u6765\u8bf4\uff0c\u8be5\u51fd\u6570\u6240\u9700\u6267\u884c\u7684\u65f6\u95f4\u76f8\u5bf9\u8f83\u957f\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff087\uff09\u5982\u679c\u4f7f\u7528\u672a\u7ecf\u6388\u6743\u7684\u8bbe\u5907\u53d1\u9001\u77ed\u4fe1\u606f\uff0c\u90a3\u4e48\u6bcf\u6761\u6b63\u5e38\u77ed\u4fe1\u606f\u5185\u5bb9\u4e4b\u540e\u90fd\u4f1a\u8ddf\u4e00\u6761\u5e7f\u544a\u4fe1\u606f\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff088\uff09\u5982\u679c\u9700\u8981\u7ed9\u5c0f\u7075\u901a\u53d1\u9001\u77ed\u4fe1\u606f\uff0c\u8bf7\u5728\u53f7\u7801\u524d\u52a0106\u3002\u4f8b\u5982\uff0c\u5317\u4eac\u7684\u5c0f\u7075\u901a\u53f7\u7801\u662f80659031\uff0c\u90a3\u4e48\u76ee\u6807\u53f7\u7801\u5e94\u8be5\u662f\uff1a\u3010106\u3011\uff0b\u300e\u533a\u53f7\u300f\uff0b80659031\uff0c\u5373\uff1a10601080659031\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.4.2 \u63a5\u6536\u77ed\u4fe1\u606f<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Receive the content.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL _stdcall ReceiveContent(UINT nDeviceNumber,LPSTR lpszTerminalAddress,LPSTR lpszContent);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u4ece\u8bbe\u5907\u4e2d\u83b7\u53d6\u63a5\u6536\u5230\u7684\u77ed\u4fe1\u606f\u3002\u8be5\u51fd\u6570\u5c06\u53ea\u63a5\u6536\u6587\u672c\u77ed\u4fe1\u606f\uff0c\u5c4f\u853d\u6536\u6761\u548c\u65e0\u6cd5\u89e3\u6790\u7684\u4fe1\u606f\uff08\u5305\u62ec\u6570\u636e\u683c\u5f0f\u7684\u4fe1\u606f\uff09\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09ReceiveContent\u5e76\u4e0d\u80fd\u6bcf\u6b21\u90fd\u8fd4\u56deTRUE\u3002\u9700\u8981\u6709\u4e00\u4e2a\u865a\u5e7b\u4e0d\u65ad\u5730\u53bb\u8c03\u7528\u8be5\u51fd\u6570\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5982\u679cReceiveContent\u8fd4\u56deFALSE\uff0c\u8bf7\u6839\u636eGetStatus\u51fd\u6570\u505a\u76f8\u5e94\u7684\u5904\u7406\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u5982\u679c\u4ece\u672a\u6388\u6743\u7684\u8bbe\u5907\u4e0a\u83b7\u53d6\u77ed\u4fe1\u606f\uff0c\u90a3\u4e48\u4e5f\u5c06\u83b7\u5f97\u6400\u6742\u7740\u5e7f\u544a\u4fe1\u606f\u7684\u77ed\u4fe1\u606f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.4.3 \u8bbe\u5907\u72b6\u6001\u51fd\u6570<\/h4>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Get the status of the device.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int _stdcall GetStatus(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/Get the error of the device.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int _stdcall GetError(UINT nDeviceNumber);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u8fc7\u7a0b\u63cf\u8ff0\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u83b7\u5f97\u8bbe\u5907\u6700\u8fd1\u4e00\u6b21\u7684\u72b6\u6001\u548c\u9519\u8bef\u4ee3\u7801\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u6ce8\u610f\u95ee\u9898\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u8bf7\u5728\u6bcf\u6b21\u8c03\u7528\u53d1\u9001\u548c\u63a5\u6536\u51fd\u6570\u4e4b\u540e\uff0c\u5982\u679c\u51fd\u6570\u8fd4\u56deFALSE\uff0c\u90a3\u4e48\u5c31\u8981\u68c0\u6d4b\u4e00\u4e0b\u8bbe\u5907\u7684\u72b6\u6001\u3002\u6839\u636e\u4e0d\u540c\u7684\u72b6\u6001\u505a\u9519\u8bef\u5904\u7406\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u5176\u4ed6\u65f6\u5019\u4f7f\u7528\u8be5\u51fd\u6570\uff0c\u662f\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u5b89\u88c5\u4e0e\u4f7f\u7528<\/h2>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple PC Connect\u6709\u4e24\u4e2a\u7248\u672c\uff1a<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09Release\u7248\u672c\uff1aSimplePCConnect.dll\uff08155,648\u5b57\u8282\uff09<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09Debug\u7248\u672c\uff1aSimplePCConnect.dll\uff081,642,569\u5b57\u8282\uff09<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u4f7f\u7528\u524d\uff0c\u8bf7\u5c06\u8be5DLL\u62f7\u8d1d\u6216\u5b89\u88c5\u5230Windows\u7684system\u76ee\u5f55\u4e0b\uff0c\u901a\u8fc7\u58f0\u660e\u6216\u88c5\u8f7d\u5c31\u53ef\u4ee5\u4f7f\u7528\u8be5\u6a21\u5757\u4e2d\u7684\u5404\u4e2a\u51fd\u6570\u3002\u4f7f\u7528\u65b9\u6cd5\u8bf7\u53c2\u8003\u4e0a\u9762\u7684\u8be6\u7ec6\u8bf4\u660e\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u53e6\u5916\uff0c\u8be5\u6a21\u5757\u4e2d\u53ef\u80fd\u4f7f\u7528\u5230\u4e86Visual C&amp;C++\u7684\u76f8\u5173\u52a8\u6001\u8fde\u63a5\u5e93\u3002\u5982\u679c\u4f60\u6ca1\u6709\u8be5\u5e93\uff0c\u8bf7\u4e0a\u7f51\u4e0b\u8f7d\u6216\u8005\u5b89\u88c5Visual C&amp;C++\u7cfb\u7edf\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u57fa\u672c\u8c03\u7528\u8fc7\u7a0b<\/h2>\n\n\n\n<p>\u6574\u4e2a\u6a21\u5757\u7684\u8be6\u7ec6\u8c03\u7528\u8fc7\u7a0b\u53ef\u4ee5\u53c2\u8003Visual Basic\u4f8b\u5b50\u7a0b\u5e8f\u7684\u8c03\u7528\u8fc7\u7a0b\u3002\u8fd9\u91cc\u518d\u7b80\u5355\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5.2 \u53d1\u9001\u8fc7\u7a0b<\/h3>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u4f7f\u7528InitializePCConnect\u521d\u59cb\u5316\u6a21\u5757\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u4f7f\u7528OpenPCConnect\u6253\u5f00\u4e00\u4e2a\u6307\u5b9a\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u4f7f\u7528SetXXXContent\u8bbe\u7f6e\u5f85\u53d1\u9001\u7684\u5185\u5bb9\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u4f7f\u7528SendContent\u5c06\u5185\u5bb9\u53d1\u9001\u5230\u6307\u5b9a\u7684\u7528\u6237\u624b\u673a\u4e0a\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff085\uff09\u68c0\u6d4b\u53d1\u9001\u7ed3\u679c\uff0c\u8fdb\u884c\u9519\u8bef\u5904\u7406\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff086\uff09\u5982\u679c\u8fd8\u6709\u7528\u6237\uff0c\u90a3\u4e48\u91cd\u590d\uff084\uff09\u548c\uff085\uff09\u76f4\u5230\u6240\u6709\u7684\u7528\u6237\u90fd\u53d1\u9001\u5b8c\u6bd5\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff087\uff09\u4f7f\u7528ClosePCConnect\u5173\u95ed\u4e00\u4e2a\u6307\u5b9a\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff088\uff09\u4f7f\u7528UninitializePCConnect\u5378\u8f7d\u6a21\u5757\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5.3 \u63a5\u6536\u8fc7\u7a0b<\/h3>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff081\uff09\u4f7f\u7528InitializePCConnect\u521d\u59cb\u5316\u6a21\u5757\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff082\uff09\u4f7f\u7528OpenPCConnect\u6253\u5f00\u4e00\u4e2a\u6307\u5b9a\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff083\uff09\u4f7f\u7528ReceiveContent\u63a5\u6536\u77ed\u4fe1\u606f\u5185\u5bb9\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff084\uff09\u68c0\u6d4b\u63a5\u6536\u7ed3\u679c\uff0c\u8fdb\u884c\u9519\u8bef\u5904\u7406\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff085\uff09\u4e0d\u65ad\u91cd\u590d\uff083\uff09\u8fc7\u7a0b\uff0c\u76f4\u5230\u6574\u4e2a\u5e94\u7528\u7ed3\u675f\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff086\uff09\u4f7f\u7528ClosePCConnect\u5173\u95ed\u4e00\u4e2a\u6307\u5b9a\u8bbe\u5907\u3002<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\uff087\uff09\u4f7f\u7528UninitializePCConnect\u5378\u8f7d\u6a21\u5757\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u6ce8\u610f\u95ee\u9898<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">6.1 \u5728Visual Basic\u7684\u63a5\u53e3\u8fc7\u7a0b\u4e2d\u51e1\u662f\u4f7f\u7528BOOL\u53d8\u91cf\u7684\u8fd4\u56de\u51fd\u6570\u6709\u4e9b\u65f6\u5019\u5de5\u4f5c\u4e0d\u6b63\u5e38\u3002<\/h3>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u3010\u89e3\u51b3\u3011<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5728Visual Basic\u4e2d\u7684boolean\u53d8\u91cf\u4e3a2\u4e2a\u5b57\u8282\uff0c\u800c\u5728Visual C&amp;C++\u4e2d\u7684BOOL\u4e3a4\u4e2a\u5b57\u8282\u3002\u5efa\u8bae\u5c06\u51fd\u6570\u58f0\u660e\u4e3a\u6574\u6570\u51fd\u6570\uff0c\u6216\u8005\u4f7f\u7528P-Code\uff08\u800c\u4e0d\u662fNative Code\uff09\u7f16\u8bd1\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SimplePCConnect\u662fSimpleTeam\u63d0\u4f9b\u7684\u4e00\u6b3e\u514d\u8d39\u7684GSM\u6a21\u5757\u77ed\u4fe1\u606f\u9a71\u52a8\u7a0b\u5e8f\u3002\u8be5\u9a71\u52a8\u7a0b\u5e8f\u53ef\u4ee5\u901a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":58,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-710","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/pages\/710"}],"collection":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/comments?post=710"}],"version-history":[{"count":3,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/pages\/710\/revisions"}],"predecessor-version":[{"id":719,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/pages\/710\/revisions\/719"}],"up":[{"embeddable":true,"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/pages\/58"}],"wp:attachment":[{"href":"http:\/\/www.algmain.com\/index.php\/wp-json\/wp\/v2\/media?parent=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}