黄季冬=>fox23

Nothing replaces hard work
数据加载中……

置顶随笔

[置顶][资源]Windows Mobile 开发者新手上路指南

     摘要: 新手指南和资源列表  阅读全文

posted @ 2008-02-05 23:05 fox23 阅读(679) | 评论 (4)编辑

2008年5月4日

使用Popfly GameCreator轻松构建Silverlight游戏--Part2(final)

     摘要:


本文介绍了如何利用Microsoft Popfly Gamecreator轻松构建自定义的silverlight小游戏。本文描述的是创建非玩家部分和胜负场景,Have fun!
Keywords
Microsoft Popfly,Silverlight,Game
  阅读全文

posted @ 2008-05-04 18:00 fox23 阅读(1502) | 评论 (8)编辑
使用Popfly GameCreator轻松构建Silverlight游戏--Part1

     摘要:


本文介绍了如何利用Microsoft Popfly Gamecreator轻松构建自定义的silverlight小游戏。本文描述的是创建基本场景和玩家部分。Have fun!
Keywords
Microsoft Popfly,Silverlight,Game  阅读全文

posted @ 2008-05-04 17:56 fox23 阅读(1481) | 评论 (3)编辑

2008年5月3日

[CF.Skills]WinCE互操作时传递托管控件句柄的小技巧

     摘要: 在和Native Code打交道的时候,我们经常要传递某个控件(如form)的句柄(handle)给本地代码。本文演示了如何使用Control的Copture属性和SetCapture,GetCapture方法轻松实现这个过程。  阅读全文

posted @ 2008-05-03 10:29 fox23 阅读(129) | 评论 (2)编辑
数字通信原理笔记(二)---GSM系统

     摘要:   阅读全文

posted @ 2008-05-03 10:22 fox23 阅读(48) | 评论 (0)编辑

2008年5月2日

[CF.Skills]防止Smartphone进入休眠状态

     摘要: 之前我有一篇随笔提到了如何编程在Pocket PC上以预定的时间运行你的程序,也提到了使用OpennetCF实现长时间间隔定时运行程序。本文介绍了另一种有趣的方式,在Smartphone上面通过简单的注册表设置来防止手机进入休眠状态。  阅读全文

posted @ 2008-05-02 14:52 fox23 阅读(170) | 评论 (0)编辑

2008年4月30日

数字通信原理笔记(一)---概述

     摘要:   阅读全文

posted @ 2008-04-30 18:34 fox23 阅读(45) | 评论 (0)编辑

2008年4月29日

[CF.Skills]在.NET Compact Framework中设置webservice的session状态

.NET CF中没有Cookie Container之类方便管理cookie的类,我刚刚简单的搜索了一下,找到一段用作Session管理器的代码:(原文见这里)

        /// <summary>
        
/// This field contains the received session cookie
        
/// </summary>

        private string cookie = null;

        
/// <summary>
        
/// Http-Header for the request SessionCookie
        
/// </summary>

        private const string REQUESTHEADER_SESSIONCOOKIE = "Cookie";

        
/// <summary>
        
/// Http-header for the response SessionCookie
        
/// </summary>

        private const string RESPONSEHEADER_SESSIONCOOKIE = "Set-Cookie";

        
private void ProcessResponse(System.Net.HttpWebResponse response)
        
{
            
// Is the cookie present in the response?
            if (response.Headers.Get(RESPONSEHEADER_SESSIONCOOKIE) != null)
            

                
// Store the cookie
                cookie = response.Headers.Get(RESPONSEHEADER_SESSIONCOOKIE);
            }

        }


        
/// <summary>
        
/// This override will tweak the request to allow Session-cookies
        
/// </summary>
        
/// <returns>The tweaked request</returns>

        protected override System.Net.WebRequest GetWebRequest(Uri uri)
        
{
            System.Net.HttpWebRequest request 
= (System.Net.HttpWebRequest)base.GetWebRequest(uri);

            
// Is the session cookie cached?
            if (cookie != null)
            

                
// Add the sessioncookie to the request
                request.Headers.Add(REQUESTHEADER_SESSIONCOOKIE, cookie);
            }

            
return request;
        }


        
/// <summary>
        
/// This override will tweak the response to allow Session-cookies
        
/// </summary>

         protected override System.Net.WebResponse GetWebResponse(System.Net.WebRequest request)
        
{
            System.Net.HttpWebResponse response 
= (System.Net.HttpWebResponse)base.GetWebResponse(request);
            ProcessResponse(response);
            
return response;
        }


        
/// <summary>
        
/// This override will tweak the response to allow Session-cookies
        
/// </summary>

        protected override System.Net.WebResponse GetWebResponse(System.Net.WebRequest request, IAsyncResult result)
        
{
            System.Net.HttpWebResponse response 
= (System.Net.HttpWebResponse)base.GetWebResponse(request, result);
            ProcessResponse(response);
            
return response;
        }

除了这种人工控制请求应答的消息头的方式,不知道在.NET CF中大家还有哪些方案来维系webservice的会话,不妨一同探讨一下:-)

Regards

黄季冬

posted @ 2008-04-29 18:47 fox23 阅读(50) | 评论 (0)编辑

2008年4月27日

[CF.Skills]Windows Mobile如何编程实现免提功能

     摘要: 本文阐述了如何在Windows mobile的设备上使用托管代码在来电时触发扬声器,间接实现免提的功能
Keywords
Windows Mobile,.NET CompactFramework,Speaker,keybd_event,C#  阅读全文

posted @ 2008-04-27 12:26 fox23 阅读(218) | 评论 (3)编辑

2008年4月25日

[OTs]I miss u folks

今天翻出了当初做数据结构课程设计的一篇文档,可惜代码已经找不到了,仅以此图怀念当初一起工作的同学:

HJCXKH2D
Good luck to you!

posted @ 2008-04-25 10:43 fox23 阅读(44) | 评论 (0)编辑

2008年4月15日

[CF.Skills]托管代码在Smartphone上创建快捷方式

     摘要:

以前我们经常是同步后在PC机上Copy程序并选择”粘贴快捷方式”,在Smartphone上添加快捷菜单,本文介绍了另外一种通过编程在Smartphone上创建快捷方式的方案。
Keywords
Smartphone,Shortcut,windows mobile,.NET Compact Framework,C#

  阅读全文

posted @ 2008-04-15 20:57 fox23 阅读(1460) | 评论 (22)编辑

2008年4月11日

[CF.Skills]Windows Mobile上设置只读但是可选择内容的textBox

     摘要: 本文演示了如何设置一个只读,但是可以让用户选择,并可以设置其它属性的Textbox,没有用到ReadOnly属性,而是用到了另一个小技巧。
  阅读全文

posted @ 2008-04-11 22:34 fox23 阅读(255) | 评论 (16)编辑

2008年4月9日

关于Emulator的问题:模拟器的文件系统在PC机何处可以找到?

     摘要: 总是有很多开发者着问这个问题,很正常,我们总是希望能方便的看到模拟器的文件,我们总是希望以PC机上熟悉的方式去操作他们。不过这里对模拟器(Device Emulator)我们应该有个正确的认识。  阅读全文

posted @ 2008-04-09 23:34 fox23 阅读(168) | 评论 (16)编辑
[CF.Skills]托管代码中使用PocketOutlook轻松查找和添加联系人

     摘要: 尽管我有时候对C#和这种基于框架的开发模式很厌倦,或者说.NET Framework多少让人觉得有点束缚,但是有时候你不得不感叹它让我们的开发变得多么轻松。比如这里提到的访问Windows Mobile的联系人。
keywords
POOM,windows mobile,PocketOutlook,Contacts,.NET Compact Framework,C#,C++  阅读全文

posted @ 2008-04-09 18:32 fox23 阅读(199) | 评论 (0)编辑

2008年4月7日

Windows Embedded Source Tools for Bluetooth Technology

很久以前的资源,但还是有不少朋友问

Windows Embedded Source Tools for Bluetooth Technology(Native Code)

The class library wrapper provided by Windows Embedded Source Tools for Bluetooth Technology helps make development for Bluetooth Technology faster and easier by reducing the lines of code necessary to develop for Bluetooth Technology from hundreds to just a few.

Components Include:

  • Classes to create Bluetooth services
  • Classes to enumerate Bluetooth devices
  • Classes to connect to an existing Bluetooth device or service
下载这个工具包:download from MSDN

32Feet.NET bluetooth library(Managed Code)
32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code. Supports desktop, mobile or embedded systems. The project currently consists of the following libraries:-
  • Bluetooth
  • IrDA
  • Object Exchange
Bluetooth support requires a device with the Microsoft Bluetooth stack. Requires .NET Compact Framework v1.0 or above and Windows CE.NET 4.2 or above, or .NET Framework v1.1 for desktop Windows XP and Vista.
下载地址:http://www.codeplex.com/32feet/SourceControl/ListDownloadableCommits.aspx

Bluetooth Developer wiki
http://channel9.msdn.com/wiki/default.aspx/Channel9.BluetoothDevelopment

Enjoy~

Freesc



posted @ 2008-04-07 17:28 fox23 阅读(154) | 评论 (0)编辑
Mobile Web Application支持ActiveX吗?

 Mobile Web Application支持ActiveX吗?

前一阵有些朋友在论坛上面问到了IE MobileActiveX控件的支持。
http://winbile.net/bbs/forums/threads/1036397.aspx
http://forums.microsoft.com/china/ShowPost.aspx?PostID=3071208&SiteID=15
尽管这些问题已经回答过了,可是仍然有朋友在Email中问及相关话题,也许有必要写点东西放上来跟大家分享一下J

Support ActiveX?

首先可以肯定的是IE Mobile支持ActiveXWindows Mobile上的Windows Mobile Player就是一个ActiveX控件,还有一些常见的第三方控件如Adobe Flash等。

Any Difference?

毕竟Mobile Device不同于PC机,一般来说,桌面应用程序的ActiveX控件不能用于Windows Mobile的设备上。
这很好理解,仅从CPU的层面考虑,PC机常用的x86的指令体系就和常见的基于ARM的移动设备不兼容。所以,面向你的应用程序平台的ActiveX控件必须是被编译成相应处理器能识别的指令集合,才能得以正确运行。更多关于IE Mobile请参考http://msdn2.microsoft.com/en-us/library/ms919089.aspx

Auto-Download?

No! IE Mobile目前并不支持像PC机上那样由浏览器自动下载所需ActiveX控件。这是基于对设备安全性的一些考虑,考虑到前面提到的,要防止基于x86编写的ActiveX控件被错误地Push到基于ARMWindows Mobile设备上而造成意料不到的后果。

How to Install?

安装跟CAB方式的安装类似,主要有两种途径:

1). 通过同步到PC机从PC端安装

2). CAB包拷贝到Windows Mobile的设备上,直接从设备安装

Enjoy it~

 

posted @ 2008-04-07 11:18 fox23 阅读(127) | 评论 (0)编辑

2008年4月1日

[OTs]Computers give only answers

Computers are useless. They can only give you answers
                                                                   -Pablo Picasso

it seems that P.Picasso is not only an artist, he tells the essential truth between human beings and computers :-)

posted @ 2008-04-01 12:42 fox23 阅读(57) | 评论 (2)编辑

2008年3月30日

Windows Mobile 进阶系列.WCF Mobile(Part 2)

     摘要: 对于Windows Mobile来说,WCF是一个崭新的概念,在.NET CF v3.5中提供了对WCF的支持,它是桌面WCF(Windows Communication Foundation,也称作Indigo)的一个子集。本文是上一篇随笔WCF Mobile的第二部分,主要阐述了如何使用Compact WCF的HTTP Transport的消息模型在我们的应用程序中进行实际的开发。
Keywords
Windows Mobile, WCF, .NET CF, Web Service, BasicHttpBinding ,C#

  阅读全文

posted @ 2008-03-30 02:36 fox23 阅读(1913) | 评论 (10)编辑

2008年3月28日

Windows Mobile 进阶系列.WCF Mobile(Part 1)

     摘要: 对于Windows Mobile来说,WCF是一个崭新的概念,在.NET CF v3.5中提供了对WCF的支持,它是桌面WCF(Windows Communication Foundation,也称作Indigo)的一个子集。本文阐述了Compact WCF的功能和模型以及如何使用WCF轻松创建通信程序。
Keywords
Windows Mobile, WCF, .NET CF, Web Service, C#,Lunch Launcher  阅读全文

posted @ 2008-03-28 15:29 fox23 阅读(1800) | 评论 (15)编辑

2008年3月26日

Windows Mobile 进阶系列.多窗体应用的性能与编程调试

     摘要: 在资源有限的Windows Mobile移动设备上面,具有多窗体的应用程序的性能问题是值得我们去关注的。本文阐述了如何优化多窗体应用程序的性能,提高加载速度的方案以及在性能调试过程中常用的编程调试的技巧。
Keywords
Windows Mobile,Windows Forms,.NET CF,Performance,Debug,C#   阅读全文

posted @ 2008-03-26 09:40 fox23 阅读(2413) | 评论 (8)编辑

2008年3月22日

去哪里看Silverlight for Windows Mobile?

去哪里看Silverlight for Windows Mobile?
那就是Giorgio的博客(RSS)
Giorgio在MIX08作了Silverlight for Windows Mobile的演说(你可以在这里查看),他的博客上面有相关的很多材料。
去看看吧~
:-)

posted @ 2008-03-22 16:48 fox23 阅读(106) | 评论 (0)编辑