上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

2015年4月22日

sql server 日期时间操作

摘要: 1 : 日期 + 1DECLARE @date DateTimeSET @date = GetDate()SET @date = DateAdd(day, 1, @date)SELECT @date 阅读全文

posted @ 2015-04-22 10:04 齐文宣 阅读(174) 评论(0) 推荐(0)

2015年4月16日

怎样在visual studio 2005 让客户端的recv函数不阻塞

摘要: 1 客户端要达到的要求,大致如下 :while(1){if (有需要向服务器发送的request) send()else if(没有需要向服务器发送的request) iResult = recv(mThreadSocket, buffer, 1, MSG_PEEK); //看一下是不是从服务器... 阅读全文

posted @ 2015-04-16 15:00 齐文宣 阅读(515) 评论(0) 推荐(0)

2015年3月31日

c# winform 程序用126邮箱发邮件

摘要: 代码如下: private void button1_Click(object sender, EventArgs e) { string strTitle = "alert! We have not receive new data from me... 阅读全文

posted @ 2015-03-31 10:09 齐文宣 阅读(988) 评论(0) 推荐(0)

2015年2月5日

MiniDump类笔记

摘要: h文件 :#pragma once#include #include #include #include class CMiniDump{public: static BOOL Begin(VOID); //声明成静态函数是想直接调用而不必new一个实例 s... 阅读全文

posted @ 2015-02-05 17:57 齐文宣 阅读(367) 评论(0) 推荐(0)

2015年1月20日

把 AfxBeginThread 用 CreateThread 代替

摘要: 原来的代码:线程函数 ---UINT ServerRecThread(LPVOID pParam){ SOCKET sRecSocket = (SOCKET)pParam; while(1) { if(CServerObj.RecClient(sRecSoc... 阅读全文

posted @ 2015-01-20 14:23 齐文宣 阅读(329) 评论(0) 推荐(0)

2014年11月11日

TB log 的实现

摘要: 1 : 首先定义一个接口类 ITBCAFLog/*-----------------------------------------------------------------------------------------------------------------------------... 阅读全文

posted @ 2014-11-11 14:49 齐文宣 阅读(312) 评论(0) 推荐(0)

2014年11月4日

sh改写后的simplecall 运行的流程,非原版

摘要: 1 : 在main 函数中 , 新建一个pSimpleCall = tbnew CSimpleCall(CmdLineArgs);接着再调用 Result = pSimpleCall->Init(); 初始化数据库连接,并且把自己 attach到CTBCMCLIB , 能够attach的前提是 继承... 阅读全文

posted @ 2014-11-04 17:55 齐文宣 阅读(316) 评论(0) 推荐(0)

最初版本的simplecall是如何把2个callleg连起来的

摘要: 因为是实例程序, 能简化的地方都简化了 , 比如 被叫号码和走哪个NAP 就是直接一一对应的 ,先定义这样一个结构 :typedef struct _TBS2GWSIMPLECALL_ROUTE{ TBX_CHAR szCalledNumber[T... 阅读全文

posted @ 2014-11-04 16:45 齐文宣 阅读(483) 评论(0) 推荐(0)

2014年10月29日

c#客户端调用sql server 存储过程速度慢的问题

摘要: 1 : c#代码是 SqlConnection connNew = null; connNew = new SqlConnection(@"Data Source="XXX"); ... 阅读全文

posted @ 2014-10-29 14:51 齐文宣 阅读(1004) 评论(0) 推荐(0)

2014年10月28日

CTBCMCLeg类

摘要: 一 :Do not confuse a call leg with a call . A call leg represents one full-duplex link to a party whilea call represents the agglomeration of multiple ... 阅读全文

posted @ 2014-10-28 15:50 齐文宣 阅读(177) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

导航