BOOL Running(){ HKEY hKey; LPCTSTR strRegPath = L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"; if (RegOpenKeyEx(HKEY_CURRENT_USER, str...
分类:
其他好文 时间:
2015-09-11 12:25:25
阅读次数:
116
终止线程的三种方法? ??? 1.? 使用退出标志,使线程正常退出,也就是当run方法完成后线程终止。? ??? 2.? 使用stop方法强行终止线程(这个方法不推荐使用,因为stop和suspend、resume一样,也可能发生不...
分类:
编程语言 时间:
2015-09-11 10:51:25
阅读次数:
201
1.NSThread ①.开线程的几种方式 *先创建, 后启动//开启线程 NSThread *thread =[[NSThread alloc]initWithTarget:self selector:@selector(run) object:nil]; //启动 [threa...
分类:
移动开发 时间:
2015-09-11 10:26:33
阅读次数:
264
使用 Connector/C++ 查询 Mysql , 连续调用存储过程时会出现如下:Commands out of sync; you can't run this command now,state:HY000出现原因可以看这里:http://stackoverflow.com/question...
分类:
数据库 时间:
2015-09-10 21:09:20
阅读次数:
222
1). copy u-boot sudo dd if=u-boot-mx6q-sabresd.bin of=/dev/sdb bs=512 seek=2 skip=2 conv=fsync 2). copy uImage sudo dd if=uImage of=/dev/sdb bs=512 seek=2048 conv=fsync 3). copy rootfs 4). run boot...
分类:
其他好文 时间:
2015-09-10 13:20:23
阅读次数:
234
最近推荐一个朋友学习js,今天他问了我一个问题,问题如下: 1 function Box (){} 2 Box.prototype = { 3 name : 'Lee', 4 age : 28, 5 run : function (){ 6 return th...
分类:
其他好文 时间:
2015-09-09 21:22:51
阅读次数:
277
目录结构:project├── info.json├── run.py└── static └── readme.txt# 直接返回static目录下的文件内容@app.route('/readme.txt')def hi(): return redirect(url_for('static'...
分类:
其他好文 时间:
2015-09-09 19:26:28
阅读次数:
201
安装配置:Install MongoDB on Windows(安装配置官方参考) http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/1.Run MongoDBC:\Program Files\MongoDB\Ser...
分类:
数据库 时间:
2015-09-09 19:11:08
阅读次数:
184
docker run$ sudo docker run [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...]docker run命令有两个参数,一个是镜像名,一个是要在镜像中运行的命令。
正确的命令:$ docker run learn/tutorial echo "hello word"
-d:containter将会运行在后台模式
–name:给container命...
分类:
其他好文 时间:
2015-09-09 17:41:03
阅读次数:
203
Login login= new Login(); login.ShowDialog(); if (login.DialogResult == DialogResult.OK) { Application.Run(new mian()); login.Dispose(); } else if (lo...