摘要: 1.编译zeromq, 默认不启动PGM协议, 编译前需要在属性中打开PGM支持, 打开后需要提供openPgm的库和头文件 2.服务器端代码 3. 客户端 阅读全文
posted @ 2017-09-04 17:00 ge ge wu 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 没法FQ的可以看看, 网上有编译好的, 但不适合自己的项目, 只能自己编译 编译方法原文 summary OpenPGM 5 : C Reference : Build Library : MSVC 2010 on Windows 7labels Phase-Implementationsideba 阅读全文
posted @ 2017-09-01 18:55 ge ge wu 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 项目中需要从网页中打开一个本地应用程序,并传递给应用程序启动参数方法有很多,最简单的一种是通过自定义协议,类似于mailto http https 主流浏览器都支持只需要在注册表中添加相应内容即可官方叫做 Pluggable Protocol,浏览器只完成启动程序,传递参数工作,程序独立运行,不能与网页交互比如自定义协议名为DEMO,要启动的应用程序完整路径为 C:\DIR\EXE.exeWeb 请求为 DEMO://AAA:a;BBB:b;CCC:c;HKEY_CLASSES_ROOTDEMO (Default) = "UR... 阅读全文
posted @ 2013-06-21 13:14 ge ge wu 阅读(4892) 评论(2) 推荐(0) 编辑
摘要: 1.用C#编写一个类库(DEMO.DLL)using System;using System.Collections.Generic;using System.Text;namespace CSHARPDEMO{ public class DEMO { public Demo_Response DoRequest(Demo_Request request) { Demo_Response response = new Demo_Response(); response.result = "0000" ... 阅读全文
posted @ 2013-05-06 14:07 ge ge wu 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1.ajax.jsajax.jsfunction createXMLHttpRequest() { var req = null; try { req = new XMLHttpRequest(); if (typeof req.overrideMimeType !== "undefined") { req.overrideMimeType("text/xml"); } } catch (ex) { req = null; } return req;}function loadXMLDo... 阅读全文
posted @ 2013-05-06 13:28 ge ge wu 阅读(1367) 评论(0) 推荐(0) 编辑