注意添加权限: 代码如下://更新短信private void
UpdateSMS(){/*update支持的协议有很多:SMS_RAW_MESSAGE SMS_STATUS_PENDING SMS_ALL
SMS_FAILED SMS_QUEUED SM...
分类:
移动开发 时间:
2014-06-03 07:26:15
阅读次数:
371
-- 转存表中的数据`forum_post`INSERT INTO `forum_post`
(`pid`, `fid`,`tid`, `first`, `author`, `authorid`, `subject`, `dateline`,
`message`,`useip`, `invisibl...
分类:
数据库 时间:
2014-05-30 09:58:50
阅读次数:
348
PeekMessage函数:先看看MSDN怎么说:PeekMessage
functionDispatches incoming sent messages, checks the thread message queue for a
posted message, and retrieves th...
分类:
其他好文 时间:
2014-05-30 04:29:06
阅读次数:
254
先写一个服务器端的监听程序,功能室从客户端读取字符,接收到后告知客户端“I got your
message: ”+收到的消息:server.c#include #include #include #include #include #include
#include ...
分类:
编程语言 时间:
2014-05-30 00:40:28
阅读次数:
419
1.创建一个单例模式来管理xmpp的连接和操作 1 +(XMPPManager *)share 2 {
3 static XMPPManager *_share=nil; 4 static dispatch_once_t onceToken; 5
dispatch_once(...
分类:
移动开发 时间:
2014-05-29 13:20:04
阅读次数:
397
一、所需jar包: 1、mail.jar 2、activation.jar二、代码:
1、MailUtil.javapackage com.gnnuit.web.mail.util;import
java.util.Properties;import javax.mail.Message;im...
分类:
编程语言 时间:
2014-05-29 13:19:02
阅读次数:
428
Linux系统中的进程间通信方式主要以下几种:同一主机上的进程通信方式* UNIX进程间通信方式:
包括管道(PIPE), 有名管道(FIFO), 和信号(Signal)* System V进程通信方式:包括信号量(Semaphore),
消息队列(Message Queue), 和共享内存(Sha...
分类:
编程语言 时间:
2014-05-29 03:03:59
阅读次数:
374
A dispatchsemaphore(信号量) is useful if you need
a concurrency control for a small portion(部分) of the source code that has
smaller granularity(颗粒度) than...
分类:
其他好文 时间:
2014-05-28 21:51:45
阅读次数:
395
iOS
支持多个层次的多线程编程,层次越高的抽象程度越高,使用起来也越方便,也是苹果最推荐使用的方法。下面根据抽象层次从低到高依次列出iOS所支持的多线程编程范式:1,
Thread;2, Cocoa operations;3, Grand Central Dispatch (GCD) (iOS4 ...
分类:
移动开发 时间:
2014-05-28 10:14:44
阅读次数:
297
Chrome插件开发笔记360翻译了Chrome插件开发的文档
(仍然建议出去看看)看这里http://open.chrome.360.cn/extension_dev/overview.html什么是扩展一个应用(扩展)其实是压缩在一起的一组文件,包括HTML,CSS,Javascript脚本,图...
分类:
其他好文 时间:
2014-05-28 01:49:25
阅读次数:
896