[文章作者:张宴 本文版本:v1.0 最后修改:2011.03.30 转载请注明原文链接:http://blog.s135.com/libevent_windows/] 本文介绍了如何在 Windows 操作系统中,利用微软 Visual Studio 2005 编译生成 Libevent 2.0. Read More
posted @ 2017-06-14 22:52
findumars
Views(630)
Comments(0)
Diggs(0)
新process的启动,可以通过system(const char*)函数启动另外一个程序,但是有一个小问题,就是每次执行system函数的时候,都会弹出dos窗口(命令行嘛~~~),有没有什么方法能够让我调用的程序在后台执行呢? 好像无法隐藏system函数的窗口,只能最小化等参数,不过有另外一种 Read More
posted @ 2017-06-14 22:27
findumars
Views(17991)
Comments(0)
Diggs(0)
breakpad是Google开源的一套跨平台工具,用于dump的处理。很全的一套东西,我这里只简单涉及breakpad客户端,不涉及纯文本符号生成,不涉及dump解析。 一、使用 最简单的是使用进程内dump捕获,使用者只需要跟ExceptionHandler打交道,在自己的程序里定义一个Exce Read More
posted @ 2017-06-14 22:24
findumars
Views(536)
Comments(0)
Diggs(0)
在有多个Form窗体时可以体现出来.用close是只关闭本窗体,而用Application.terminate是关闭整个程序,包括所有窗体.(1)当Close是一个主窗体时,程序会退出。Close会发生FormClose事件,FormCloseQuery事件。close,只是针对窗体。主窗体clos Read More
posted @ 2017-06-14 22:17
findumars
Views(611)
Comments(0)
Diggs(0)
一.物理结构 1.磁道,扇区,柱面和磁头数 硬盘最基本的组成部分是由坚硬金属材料制成的涂以磁性介质的盘片,不同容量硬盘的盘片数不等.每个盘片有两面,都可记录信息.盘片被分成许多扇形的区域,每个区域叫一个扇区,每个扇区可存储128×2的N次方(N=0.1.2.3)字节信息. 在DOS中每扇区是128× Read More
posted @ 2017-06-14 22:08
findumars
Views(14936)
Comments(0)
Diggs(0)
一 实验代码 代码链接,仅供学习 websocket_server.go: websocket 基于 tcp socket 的粗糙实现, 只提供 websocket 服务 websocket_http_server.go: 把该实现移植到了 http socket 环境(也可以是某个 golang Read More
posted @ 2017-06-14 22:06
findumars
Views(2837)
Comments(0)
Diggs(0)
显示在textBrowser->setText 中文乱码 转成QObject::trUtf8即可。 [cpp] view plain copy ui->textBrowser->setText((QObject::trUtf8("板子句柄 ")) ; [cpp] view plain copy [c Read More
posted @ 2017-06-14 22:01
findumars
Views(2114)
Comments(0)
Diggs(1)
醉了,windows下宏定义了很多char类型 LPTSTR 。今天,直接使用,qt报错,真TM费事。 将“CPU”转化为wcha_t * [cpp] view plain copy QString str = "CPU"; const wchar_t * str_cpu = reinterpret Read More
posted @ 2017-06-14 21:58
findumars
Views(3476)
Comments(0)
Diggs(0)
是关于如何加载dll或lib库的。可以看这篇bog Qt调用dll中的功能函数点击打开链接 ******************************************************************************************************** Read More
posted @ 2017-06-14 21:55
findumars
Views(1067)
Comments(0)
Diggs(0)
调用其它UI文件 首先 要头文件包含 #include “dialog_biaozhun.h"Dialog_biaozhun *dialog = new Dialog_biaozhun();dialog->exec();写到相应的槽函数里就ok了 dialog->setWindowTitle("标号 Read More
posted @ 2017-06-14 21:53
findumars
Views(304)
Comments(0)
Diggs(0)
1.先下载安装Qt 我们使用的版本是4.8。 可以自行百度下载也可以从下面的网盘地址下载: Qt库和编译器下载: 链接:http://pan.baidu.com/s/1hrUxLIG 密码:0181 Qt Creator下载: 链接:http://pan.baidu.com/s/1miPgpfi 密 Read More
posted @ 2017-06-14 21:06
findumars
Views(2832)
Comments(0)
Diggs(0)
最近抽空又看了下qt,发现用它来实现一些东西真的很容易比如下面这个例子,绘制了个圆形的时钟,但代码却清晰易懂[例子源自奇趣科技提供的例子]因为清晰,所以就只写注释了,吼吼其实也就这么几行代码头文件 cpp文件 main文件 pro文件 下面是运行时的截图,开发环境为qtcreator在奇趣提供的例子 Read More
posted @ 2017-06-14 18:40
findumars
Views(2544)
Comments(1)
Diggs(0)
前几天看socket本有点晕, 好不容易弄明白了,才发现公司服务器用的是http的。 找了好久也没发现linux下直接用http的api, 不过今日偶然发现了使用socket进行http通信的例子, 试了下,没问题,可以连接到服务器,并下载页面。 有了这一步,下面应该就好走些了,这里发上来,分享一下 Read More
posted @ 2017-06-14 18:22
findumars
Views(1308)
Comments(0)
Diggs(0)
掌握HTTP虽然不是必须的,但是如果你知道它的工作原理,那么在学习JSP开发中的某些知识就可以易如反掌了。 一,HTTP协议详解之URL篇 http(超文本传输协议)是一个基于请求与响应模式的、无状态的、应用层的协议,常基于TCP的连接方式,HTTP1.1版本中给出一种持续连接的机制,绝大多数的We Read More
posted @ 2017-06-14 18:15
findumars
Views(1586)
Comments(0)
Diggs(0)
HTTP有两部分组成:请求与响应,下面分别整理。 一.HTTP请求 1.HTTP请求格式: <request line> <headers> <blank line> [<request-body>] 在HTTP请求中,第一行必须是一个请求行(request line),用来说明请求类型、要访问的资 Read More
posted @ 2017-06-14 17:50
findumars
Views(3401)
Comments(6)
Diggs(1)

浙公网安备 33010602011771号