随笔分类 -  WINCE

关于Socket通信服务的心跳包(转)
摘要:在一些系统中,经常用到客户端和服务器之间的通信,服务器要时刻知道客户端的网络连接状态,这大概就是所谓的“心跳包”。下面是客户端心跳包核心代码:# region ++++++++++++++++++++ 客户端的感觉系统 //启动记时器 public void BeginTheTimer() { //th_UserLogin(); //这里只是要一个object类型数据,用它做为下面Timer的参数之一,没有其它意思 object myobject = (object)7; //暂时设定为1秒钟启动一次! System.Threading.Timer t = new System.Threadi 阅读全文

posted @ 2011-01-07 16:32 shaya 阅读(617) 评论(0) 推荐(1)

WM示例
摘要:Tetris for Pocket PC How to Unload the Input Method DLL on Pocket PC GPS and Web Service using C++ ATL/WTL (Windows Mobile 6, Standard) Full Screen Application: Windows CE and Pocket PC WorldWind with the Compact Framework Create Open File Dialog for Windows Mobile 6 (Smartphone) device Deployment P 阅读全文

posted @ 2010-12-16 15:51 shaya 阅读(289) 评论(0) 推荐(0)

遍历Resources
摘要:usingSystem;usingSystem.Collections;usingSystem.Resources;namespaceConsoleS2H{classProgram{staticvoidMain(string[]args){//CreateaResXResourceReaderforthefileitems.resx.ResXResourceReaderrsxr=newResXResourceReader("address.resx");//Iteratethroughtheresourcesanddisplaythecontentstotheconsole.foreach(D 阅读全文

posted @ 2010-12-06 17:01 shaya 阅读(780) 评论(0) 推荐(0)

.NetCF 绘制半透明效果
摘要:名人名言:人们说生命是很短促的,我认为是他们自己使生命那样短促的。由于他们不善于利用生命,所以他们反过来抱怨说时间过得太快;可是我认为,就他们那种生活来说,时间倒是过得太慢了。——卢梭 .NetCF 绘制半透明效果前言  关键字:.NetCF 半透明、AlphaBlend  用C#开放Windows Mobile刚好满一个月,一直是边看文章边写点小例子,而这些例子里面半透明... 阅读全文

posted @ 2010-12-03 17:27 shaya 阅读(356) 评论(1) 推荐(0)

导航