增加WM_ACAD_KEEPFOCUS消息的响应函数
afx_msg LONG onAcadKeepFocus( UINT, LONG );
BEGIN_MESSAGE_MAP(CPlotSingleDlg, CAcUiDialog)
ON_MESSAGE( WM_ACAD_KEEPFOCUS, onAcadKeepFocus )
END_MESSAGE_MAP()
LONG C...
分类:
其他好文 时间:
2014-12-22 11:17:35
阅读次数:
237
数据库中 将一张纵表转换为一张横表
数据库纵表数据
sql语句如下select cardid,
max(case t.projectcode when 'IA-002' then t.result end) as ht,
max(case t.projectcode when 'IA-003' then t.result end) as wt,
max(case t.projec...
分类:
数据库 时间:
2014-12-22 11:11:09
阅读次数:
156
VLC播放RTP打包发送的.264文件1,要有一个发送RTP包的264文件的服务器;具体代码如下:rtp.h#include #pragma comment(lib,"ws2_32.lib") #define PACKET_BUFFER_END (unsigned int)0...
分类:
其他好文 时间:
2014-12-22 10:56:08
阅读次数:
146
public class Test { public static void main(String[] args) { int start = -131; int end = 131; for (int i = start; i < end; i++...
分类:
其他好文 时间:
2014-12-22 10:51:54
阅读次数:
227
STL中的容器相当“聪明”,它们提供了迭代器,以便进行向后和向前的遍历(通过begin、end、rbegin等);它们告诉你所包含的元素类型(通过它们的value_type类型定义);在插入和删除的过程中,它们自己进行必要的内存管理;它们报告自己有多少对象,最多能容纳多少对象(分别通过size和max_size);当然,当它们自身被析构时,它们自动析构所包含的每个对象。
有了这么“...
分类:
其他好文 时间:
2014-12-22 09:32:18
阅读次数:
192
本文以新浪微博的Oauth认证为例子进行Post请求的演示
下面直接上代码:
#import "ViewController.h"
#import "AFNetworking.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewD...
分类:
Web程序 时间:
2014-12-21 16:41:36
阅读次数:
397
题目:
思路:
题目说 one pass
那么,这样,用两个结点(相当于c++的指针)p,q
p先跑n步,然后q和p一起跑,那么p跑到最后,q就正好在倒数第n个上面了。
ps:看了别人的代码,好多都是建立一个不用的头,然后真正的头在next里面,这样代码要少了单独处理头的那部分。
解决方案:
/**
* Definition for singly-linke...
分类:
其他好文 时间:
2014-12-21 16:40:29
阅读次数:
189
class Solution {public: int maximumGap(vector &num) { int len = num.size(); int gap = 0; sort(num.begin(), num.end()); ...
分类:
其他好文 时间:
2014-12-21 12:38:51
阅读次数:
147
1、错误描述
严重: Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??
at org.apache.tomc...
分类:
编程语言 时间:
2014-12-21 00:45:55
阅读次数:
531
1.查询数据库表结构
select
(case when a.colorder=1 then d.name else null end) [表名],
a.colorder [序号],
a.name [字段名],
(case when columnproperty(a.id,a.name,'IsIdentity')=1 then '√'...
分类:
数据库 时间:
2014-12-20 18:18:57
阅读次数:
173