<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>剑行云端</title>
	<atom:link href="http://www.chenjianjun.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.chenjianjun.com</link>
	<description>无冥冥之志者，无昭昭之明；无惛惛之事者，无赫赫之功。</description>
	<lastBuildDate>Fri, 02 Jul 2010 00:09:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>qq邮箱-三个月一次的超越</title>
		<link>http://www.chenjianjun.com/?p=325</link>
		<comments>http://www.chenjianjun.com/?p=325#comments</comments>
		<pubDate>Fri, 04 Jun 2010 00:31:27 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[邮箱]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=325</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chenjianjun.com/wp-content/uploads/2010/06/qqmail.jpg"><img class="alignleft size-medium wp-image-326" title="qqmail" src="http://www.chenjianjun.com/wp-content/uploads/2010/06/qqmail-300x169.jpg" alt="" width="300" height="169" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=325</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自信心被严重践踏后观《终极斗士》的启发</title>
		<link>http://www.chenjianjun.com/?p=322</link>
		<comments>http://www.chenjianjun.com/?p=322#comments</comments>
		<pubDate>Sun, 30 May 2010 17:03:59 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=322</guid>
		<description><![CDATA[信念是决定成功的决定性因素,即便缺少其他条件。
]]></description>
			<content:encoded><![CDATA[<p>信念是决定成功的决定性因素,即便缺少其他条件。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=322</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>godaddy优惠码（持续更新）</title>
		<link>http://www.chenjianjun.com/?p=311</link>
		<comments>http://www.chenjianjun.com/?p=311#comments</comments>
		<pubDate>Fri, 21 May 2010 10:00:40 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[优惠码]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=311</guid>
		<description><![CDATA[购买.com .net .org 域名时输入　gda536k　优惠码，可节省30%费用。　　此优惠码2010年6月6日到期
购买godaddy的虚拟主机，域名等其他使用 gda528p 优惠码，可节省 25% 。 此优惠码2010年6月6日到期
购买godaddy的虚拟主机，域名等其他使用 gda621p 优惠码，可节省 25%。此优惠码2010年6月20日到期

购买godaddy的所有产品使用 fbgdhome20 优惠码，可节省 20%。此优惠码2010年7月15日到期

]]></description>
			<content:encoded><![CDATA[<div>购买.com .net .org 域名时输入　<strong>gda536k</strong>　优惠码，可节省30%费用。　　此优惠码2010年6月6日到期</div>
<div><span>购买godaddy的虚拟主机，域名等其他使用 <strong>gda528p</strong> 优惠码，可节省 25% 。 此优惠码2010年6月6日到期</span></div>
<div><span>购买godaddy的虚拟主机，域名等其他使用 <strong>gda621p </strong>优惠码，可节省 25%。此优惠码2010年6月20日到期</span></div>
<div><span></p>
<div>购买godaddy的所有产品使用 <strong>fbgdhome20</strong><strong> </strong>优惠码，可节省 20%。此优惠码2010年7月15日到期</div>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=311</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>感情的戏，我没有演技。</title>
		<link>http://www.chenjianjun.com/?p=310</link>
		<comments>http://www.chenjianjun.com/?p=310#comments</comments>
		<pubDate>Thu, 20 May 2010 16:22:57 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=310</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=310</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery EasyUI 窗口(Window)用法</title>
		<link>http://www.chenjianjun.com/?p=305</link>
		<comments>http://www.chenjianjun.com/?p=305#comments</comments>
		<pubDate>Wed, 19 May 2010 12:14:43 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[互联网动态]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=305</guid>
		<description><![CDATA[jQuery EasyUI 窗口(Window)的主要用法和面板(panel)用法差不多，首先来看一下jQuery EasyUI 窗口(Window)在页面里显示的效果是这样的：

HTML代码 (很多Window的属性可以在标记语言中定义，比如说:icon, title等等)


&#60;div id=&#8221;win&#8221; icon=&#8221;icon-save&#8221; title=&#8221;My Window&#8221;&#62;
 Window Content
&#60;/div&#62;


 
然后按照《jQuery EasyUI框架使用文档》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：
生成一个Window：


$(&#8216;#win&#8217;).window(options);


打开一个Window：


$(&#8216;#win&#8217;).window(&#8216;open&#8217;);


Window需要依存于以下的三个组件：
* 可拖放(Draggable)
* 调整大小(Resizable)
* 面板(panel)
下面来介绍Window的具体用法，首先来看属性大多数的属性和面板(panel)的属性是相同的，下面列出一些Window私有的属性：



属性名
类型
描述
默认值


zIndex
数字
窗口的 z-index 属性，可以通过这个属性来增加
9000


draggable
布尔
定义窗口是否可被拖动
true


resizable
布尔
定义窗口是否可以被改变大小
true


shadow
布尔
如果设置为true，窗口的阴影也将显示。
true


modal
布尔
定义窗口是否是一个模式窗口。
true



Window也重写了Panel里的一些属性



属性名
类型
描述
默认值


title
字符串
窗口的标题文本
New Window


collapsible
布尔
定义是否显示可折叠定义按钮
true


minimizable
布尔
定义是否显示最小化按钮
true


maximizable
布尔
定义是否显示最大化按钮
true


closable
布尔
定义是否显示关闭按钮
true



事件
Window的事件和面板(panel)的事件相同，可以参考《jQuery EasyUI 面板(Panel)用法》
方法
除了”header”和”body”以外，Window的函数方法和面板(panel)的相同，同样也可以参考《jQuery EasyUI 面板(Panel)用法》
]]></description>
			<content:encoded><![CDATA[<p>jQuery EasyUI 窗口(Window)的主要用法和面板(panel)用法差不多，首先来看一下jQuery EasyUI 窗口(Window)在页面里显示的效果是这样的：<br />
<img class="alignnone size-full wp-image-765" title="jquery-easyui-window" src="http://www.ityizhan.com/wp-content/uploads/2010/05/jquery-easyui-window.gif" alt="" width="504" height="238" /><br />
<strong>HTML代码</strong> (很多Window的属性可以在标记语言中定义，比如说:icon, title等等)</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>&lt;div id=&#8221;win&#8221; icon=&#8221;icon-save&#8221; title=&#8221;My Window&#8221;&gt;</li>
<li> Window Content</li>
<li>&lt;/div&gt;</li>
</ol>
</div>
<p><span> </span><br />
然后按照《<a href="http://www.ityizhan.com/jquery-easyui-document/">jQuery EasyUI框架使用文档</a>》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：<br />
生成一个Window：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>$(&#8216;#win&#8217;).window(options);</li>
</ol>
</div>
<p>打开一个Window：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>$(&#8216;#win&#8217;).window(&#8216;open&#8217;);</li>
</ol>
</div>
<p>Window需要依存于以下的三个组件：<br />
* 可拖放(Draggable)<br />
* 调整大小(Resizable)<br />
* 面板(panel)</p>
<p>下面来介绍Window的具体用法，首先来看<strong>属性</strong>大多数的属性和面板(panel)的属性是相同的，下面列出一些Window私有的属性：</p>
<table border="1" width="505">
<tbody>
<tr>
<th><strong>属性名</strong></th>
<th><strong>类型</strong></th>
<th><strong>描述</strong></th>
<th><strong>默认值</strong></th>
</tr>
<tr>
<td>zIndex</td>
<td>数字</td>
<td>窗口的 z-index 属性，可以通过这个属性来增加</td>
<td>9000</td>
</tr>
<tr>
<td>draggable</td>
<td>布尔</td>
<td>定义窗口是否可被拖动</td>
<td>true</td>
</tr>
<tr>
<td>resizable</td>
<td>布尔</td>
<td>定义窗口是否可以被改变大小</td>
<td>true</td>
</tr>
<tr>
<td>shadow</td>
<td>布尔</td>
<td>如果设置为true，窗口的阴影也将显示。</td>
<td>true</td>
</tr>
<tr>
<td>modal</td>
<td>布尔</td>
<td>定义窗口是否是一个模式窗口。</td>
<td>true</td>
</tr>
</tbody>
</table>
<p>Window也重写了Panel里的一些属性</p>
<table border="1" width="505">
<tbody>
<tr>
<th><strong>属性名</strong></th>
<th><strong>类型</strong></th>
<th><strong>描述</strong></th>
<th><strong>默认值</strong></th>
</tr>
<tr>
<td>title</td>
<td>字符串</td>
<td>窗口的标题文本</td>
<td>New Window</td>
</tr>
<tr>
<td>collapsible</td>
<td>布尔</td>
<td>定义是否显示可折叠定义按钮</td>
<td>true</td>
</tr>
<tr>
<td>minimizable</td>
<td>布尔</td>
<td>定义是否显示最小化按钮</td>
<td>true</td>
</tr>
<tr>
<td>maximizable</td>
<td>布尔</td>
<td>定义是否显示最大化按钮</td>
<td>true</td>
</tr>
<tr>
<td>closable</td>
<td>布尔</td>
<td>定义是否显示关闭按钮</td>
<td>true</td>
</tr>
</tbody>
</table>
<p><strong>事件</strong><br />
Window的事件和面板(panel)的事件相同，可以参考《<a href="http://www.ityizhan.com/jquery-easyui-panel-usage/">jQuery EasyUI 面板(Panel)用法</a>》<br />
<strong>方法</strong><br />
除了”header”和”body”以外，Window的函数方法和面板(panel)的相同，同样也可以参考《jQuery EasyUI 面板(Panel)用法》</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=305</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery EasyUI 验证框(ValidateBox)用法</title>
		<link>http://www.chenjianjun.com/?p=304</link>
		<comments>http://www.chenjianjun.com/?p=304#comments</comments>
		<pubDate>Wed, 19 May 2010 12:14:43 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[互联网动态]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=304</guid>
		<description><![CDATA[jQuery EasyUI 验证框(ValidateBox)在表单的验证方面给我们提供了很方便的方法，下面来介绍一下验证框(ValidateBox)的详细用法：

HTML 代码


&#60;input id=&#8221;vv&#8221; required=&#8221;true&#8221; validType=&#8221;email&#8221;&#62;


 
然后按照《jQuery EasyUI框架使用文档》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：


$(&#8216;#vv&#8217;).validatebox(options)


下面介绍一下验证规则：
验证规则是通过使用属性 “required”和”validType”来定义的，已经实施的规则如下：

email: 匹配电子邮件正则表达式规则
url: 匹配URL正则表达式规则
length[0,100]: 允许字符串长度的范围

当然也可以自定义验证规则，重写$.fn.validatebox.defaults.rules 可以定义一个校验器的功能和无效的显示消息。例如，要定义一个minLength有效的类型：


$.extend($.fn.validatebox.defaults.rules, {
 minLength: {
 validator: function(value, param){
 return value.length &#62;= param[0];
 },
 message: &#8216;Please enter at least {0} characters.&#8217;
 }
});


定义好以后我们就可以使用了，下面的代码表示输入的最小长度是5个字符：


&#60;input class=&#8221;easyui-validatebox&#8221; validType=&#8221;minLength[5]&#8220;&#62;


下面来介绍更多的用法：属性



属性名
类型
描述
默认值


required
布尔
定义文本域是否为必填项
false


validType
字符串
定义字段的验证类型，比如email, url, etc.
null


missingMessage
字符串
当文本框为空时提示的文本信息
This field is required.


invalidMessage
字符串
当文本框内容不合法时提示的文本信息
null



方法



方法名
参数
描述


destroy
none
删除并且销毁组件


validate
none
做验证以确定文本框的内容是否是有效的。


isValid
none
调用验证方法并返回验证结果，true或者false




]]></description>
			<content:encoded><![CDATA[<p>jQuery EasyUI 验证框(ValidateBox)在表单的验证方面给我们提供了很方便的方法，下面来介绍一下验证框(ValidateBox)的详细用法：<br />
<img class="alignnone size-full wp-image-761" title="jquery-easyui-validatebox" src="http://www.ityizhan.com/wp-content/uploads/2010/05/jquery-easyui-validatebox.gif" alt="" width="454" height="218" /><br />
<strong>HTML 代码</strong></p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>&lt;input id=&#8221;vv&#8221; required=&#8221;true&#8221; validType=&#8221;email&#8221;&gt;</li>
</ol>
</div>
<p><span> </span><br />
然后按照《<a href="http://www.ityizhan.com/jquery-easyui-document/">jQuery EasyUI框架使用文档</a>》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>$(&#8216;#vv&#8217;).validatebox(options)</li>
</ol>
</div>
<p>下面介绍一下验证规则：<br />
验证规则是通过使用属性 “required”和”validType”来定义的，已经实施的规则如下：</p>
<ul>
<li>email: 匹配电子邮件正则表达式规则</li>
<li>url: 匹配URL正则表达式规则</li>
<li>length[0,100]: 允许字符串长度的范围</li>
</ul>
<p>当然也可以自定义验证规则，重写$.fn.validatebox.defaults.rules 可以定义一个校验器的功能和无效的显示消息。例如，要定义一个minLength有效的类型：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>$.extend($.fn.validatebox.defaults.rules, {</li>
<li> minLength: {</li>
<li> validator: function(value, param){</li>
<li> return value.length &gt;= param[0];</li>
<li> },</li>
<li> message: &#8216;Please enter at least {0} characters.&#8217;</li>
<li> }</li>
<li>});</li>
</ol>
</div>
<p>定义好以后我们就可以使用了，下面的代码表示输入的最小长度是5个字符：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>&lt;input class=&#8221;easyui-validatebox&#8221; validType=&#8221;minLength[5]&#8220;&gt;</li>
</ol>
</div>
<p>下面来介绍更多的用法：<strong>属性</strong></p>
<table border="1" width="505">
<tbody>
<tr>
<th><strong>属性名</strong></th>
<th><strong>类型</strong></th>
<th><strong>描述</strong></th>
<th><strong>默认值</strong></th>
</tr>
<tr>
<td>required</td>
<td>布尔</td>
<td>定义文本域是否为必填项</td>
<td>false</td>
</tr>
<tr>
<td>validType</td>
<td>字符串</td>
<td>定义字段的验证类型，比如email, url, etc.</td>
<td>null</td>
</tr>
<tr>
<td>missingMessage</td>
<td>字符串</td>
<td>当文本框为空时提示的文本信息</td>
<td>This field is required.</td>
</tr>
<tr>
<td>invalidMessage</td>
<td>字符串</td>
<td>当文本框内容不合法时提示的文本信息</td>
<td>null</td>
</tr>
</tbody>
</table>
<p><strong>方法</strong></p>
<table border="1" width="505">
<tbody>
<tr>
<th><strong>方法名</strong></th>
<th><strong>参数</strong></th>
<th><strong>描述</strong></th>
</tr>
<tr>
<td>destroy</td>
<td>none</td>
<td>删除并且销毁组件</td>
</tr>
<tr>
<td>validate</td>
<td>none</td>
<td>做验证以确定文本框的内容是否是有效的。</td>
</tr>
<tr>
<td>isValid</td>
<td>none</td>
<td>调用验证方法并返回验证结果，true或者false</td>
</tr>
</tbody>
</table>
<p><img src="http://feeds.feedburner.com/~r/ityizhan/~4/OtYkweUTMHY" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=304</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery EasyUI 数字框(NumberBox)用法</title>
		<link>http://www.chenjianjun.com/?p=303</link>
		<comments>http://www.chenjianjun.com/?p=303#comments</comments>
		<pubDate>Wed, 19 May 2010 12:14:43 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[互联网动态]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=303</guid>
		<description><![CDATA[jQuery EasyUI 数字框(NumberBox)相对来说比较简单，就是控制一个输入只接受数字类型，其他所有的字符都不接受。这在我们的应用中还是能起到很大作用的，比如说电话号码框获取金额框是只接受数字的。下面来介绍数字框(NumberBox)用法的详细用法：
HTML代码


&#60;input type=&#8221;text&#8221; id=&#8221;nn&#8221;/&#62;


然后按照《jQuery EasyUI框架使用文档》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：


$(&#8216;#nn&#8217;).numberbox(options);


 
这里的options是选项，可以参考下表：



选项名
类型
描述
默认值


min
数字
文本框中可允许的最小值
null


max
数字
文本框中可允许的最大值
null


precision
数字
最高可精确到小数点后几位
0




]]></description>
			<content:encoded><![CDATA[<p>jQuery EasyUI 数字框(NumberBox)相对来说比较简单，就是控制一个输入只接受数字类型，其他所有的字符都不接受。这在我们的应用中还是能起到很大作用的，比如说电话号码框获取金额框是只接受数字的。下面来介绍数字框(NumberBox)用法的详细用法：</p>
<p><strong>HTML代码</strong></p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>&lt;input type=&#8221;text&#8221; id=&#8221;nn&#8221;/&gt;</li>
</ol>
</div>
<p>然后按照《<a href="http://www.ityizhan.com/jquery-easyui-document/">jQuery EasyUI框架使用文档</a>》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：</p>
<div>
<ol title="Double click to show line number." ondblclick="linenumber(this)">
<li>$(&#8216;#nn&#8217;).numberbox(options);</li>
</ol>
</div>
<p><span> </span><br />
这里的options是选项，可以参考下表：</p>
<table border="1" width="505">
<tbody>
<tr>
<th><strong>选项名</strong></th>
<th><strong>类型</strong></th>
<th><strong>描述</strong></th>
<th><strong>默认值</strong></th>
</tr>
<tr>
<td>min</td>
<td>数字</td>
<td>文本框中可允许的最小值</td>
<td>null</td>
</tr>
<tr>
<td>max</td>
<td>数字</td>
<td>文本框中可允许的最大值</td>
<td>null</td>
</tr>
<tr>
<td>precision</td>
<td>数字</td>
<td>最高可精确到小数点后几位</td>
<td>0</td>
</tr>
</tbody>
</table>
<p><img src="http://feeds.feedburner.com/~r/ityizhan/~4/1RUxVbVmvXM" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=303</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCHAR* 与char*互相转换</title>
		<link>http://www.chenjianjun.com/?p=302</link>
		<comments>http://www.chenjianjun.com/?p=302#comments</comments>
		<pubDate>Wed, 19 May 2010 12:14:41 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[互联网动态]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=302</guid>
		<description><![CDATA[
vs2005和vc6.0在字符串的严谨方便还是有很大区别的，原先用VC6时很多问题都不用考虑，一般隐式转换都能自动帮你搞定，现在用VS2005后就会出现一堆的错误，原先写的代码都不能正常工作，下面是关于WCHAR* 与char*互相转换自己写的个类

class TransformCharandWchar
{
private:
 char *m_pChar;
 WCHAR *m_pWchar;
public:
 TransformCharandWchar():m_pChar(NULL),m_pWchar(NULL)
 {}
 ~TransformCharandWchar()
 {
  if (m_pChar)
  {
   delete m_pChar;
  }
  if (m_pWchar)
  {
   delete m_pWchar;
  }
 }
 const char * WcharTochar(const WCHAR* pwchar)
 {
  if(pwchar == NULL)
   return NULL;
  if(m_pChar!=NULL)
   delete m_pChar;
  int outlen = WideCharToMultiByte(CP_ACP,0,pwchar,-1,NULL,0,NULL,0);
  m_pChar = new char[outlen];
  WideCharToMultiByte(CP_ACP,0,pwchar,-1,m_pChar,outlen,NULL,0);
  return m_pChar;
 }
 const WCHAR* CharToWchar(const char * pchar)
 {
  if(pchar == NULL)
   return NULL;
  if(m_pWchar!=NULL)
   delete m_pWchar;
  int outlen = MultiByteToWideChar(CP_ACP,0,pchar,-1,NULL,0);
  m_pWchar = new WCHAR[outlen];
  MultiByteToWideChar(CP_ACP,0,pchar,-1,m_pWchar,outlen);
  return m_pWchar;
 }
};
int main()
{
 TransformCharandWchar transfrom;
 char *pchar = &#8220;abced&#8221;;
 const WCHAR *pwchar = transfrom.CharToWchar(pchar);
 const char *ptchar = transfrom.WcharTochar(pwchar);
 return 1;
}
每次用的时候最好自己重新定义一个转换类对象，别复用

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www1.feedsky.com/r/l/feedsky/6sov/365690154/art01.html" target="_blank"><img border="0" ismap="ismap" src="http://www1.feedsky.com/r/i/feedsky/6sov/365690154/art01.gif" onerror="this.style.display='none'" /></a></p>
<p><span><a href="http://www.feng5166.com/blog/?tag=vs2005" title="查看 vs2005 的全部文章" target="_blank">vs2005</a></span>和vc6.0在<span><a href="http://www.feng5166.com/blog/?tag=%E5%AD%97%E7%AC%A6%E4%B8%B2" title="查看 字符串 的全部文章" target="_blank">字符串</a></span>的严谨方便还是有很大区别的，原先用VC6时很多问题都不用考虑，一般隐式转换都能自动帮你搞定，现在用VS2005后就会出现一堆的错误，原先写的代码都不能正常工作，下面是关于WCHAR* 与char*互相转换自己写的个类<br />
<span></span><br />
class TransformCharandWchar<br />
{<br />
private:<br />
 char *m_pChar;<br />
 WCHAR *m_pWchar;<br />
public:<br />
 TransformCharandWchar():m_pChar(NULL),m_pWchar(NULL)<br />
 {}<br />
 ~TransformCharandWchar()<br />
 {<br />
  if (m_pChar)<br />
  {<br />
   delete m_pChar;<br />
  }<br />
  if (m_pWchar)<br />
  {<br />
   delete m_pWchar;<br />
  }<br />
 }<br />
 const char * WcharTochar(const WCHAR* pwchar)<br />
 {<br />
  if(pwchar == NULL)<br />
   return NULL;<br />
  if(m_pChar!=NULL)<br />
   delete m_pChar;<br />
  int outlen = WideCharToMultiByte(CP_ACP,0,pwchar,-1,NULL,0,NULL,0);<br />
  m_pChar = new char[outlen];<br />
  WideCharToMultiByte(CP_ACP,0,pwchar,-1,m_pChar,outlen,NULL,0);<br />
  return m_pChar;<br />
 }<br />
 const WCHAR* CharToWchar(const char * pchar)<br />
 {<br />
  if(pchar == NULL)<br />
   return NULL;<br />
  if(m_pWchar!=NULL)<br />
   delete m_pWchar;<br />
  int outlen = MultiByteToWideChar(CP_ACP,0,pchar,-1,NULL,0);<br />
  m_pWchar = new WCHAR[outlen];<br />
  MultiByteToWideChar(CP_ACP,0,pchar,-1,m_pWchar,outlen);<br />
  return m_pWchar;<br />
 }<br />
};<br />
int main()<br />
{<br />
 TransformCharandWchar transfrom;<br />
 char *pchar = &#8220;abced&#8221;;<br />
 const WCHAR *pwchar = transfrom.CharToWchar(pchar);<br />
 const char *ptchar = transfrom.WcharTochar(pwchar);<br />
 return 1;<br />
}<br />
每次用的时候最好自己重新定义一个转换类对象，别复用</p>
<p><img src="http://www1.feedsky.com/t1/365690154/6sov/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/6sov/~8099082/365690154/5137431/1/item.html" border="0" height="0" width="0" style="position:absolute" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=302</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>某人微博上总结到。。。</title>
		<link>http://www.chenjianjun.com/?p=300</link>
		<comments>http://www.chenjianjun.com/?p=300#comments</comments>
		<pubDate>Mon, 17 May 2010 15:43:10 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=300</guid>
		<description><![CDATA[每一个你朝思暮想的女人背后 都有一个日她日到想吐的男人!
]]></description>
			<content:encoded><![CDATA[<p>每一个你朝思暮想的女人背后 都有一个日她日到想吐的男人!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=300</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>jQuery EasyUI 表单(Form)用法</title>
		<link>http://www.chenjianjun.com/?p=293</link>
		<comments>http://www.chenjianjun.com/?p=293#comments</comments>
		<pubDate>Wed, 12 May 2010 23:55:25 +0000</pubDate>
		<dc:creator>空格剑</dc:creator>
				<category><![CDATA[互联网动态]]></category>

		<guid isPermaLink="false">http://www.chenjianjun.com/?p=293</guid>
		<description><![CDATA[jQuery EasyUI里表单(Form)的用法和jQuery里AJAX的用法差不多，下面介绍一下具体用法：
HTML代码：


&#60;form id=&#34;ff&#34; method=&#34;post&#34;&#62;
&#8230;
&#60;/form&#62;


然后按照《jQuery EasyUI框架使用文档》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：
如果想使表单变成AJAX提交：


$(&#8216;#ff&#8217;).form({
&#160;&#160; &#160; &#160; &#160;url:&#8230;,
&#160;&#160; &#160; &#160; &#160;onSubmit: function(){
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// do some check
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;// return false to prevent submit;
&#160;&#160; &#160; &#160; &#160;},
&#160;&#160; &#160; &#160; &#160;success:function(data){
&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;alert(data)
&#160;&#160; &#160; &#160; &#160;}
});



如果想做提交的动作：


$(&#8216;#ff&#8217;).form(&#8217;submit&#8217;, {
&#160;&#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery EasyUI里表单(Form)的用法和jQuery里AJAX的用法差不多，下面介绍一下具体用法：</p>
<p>HTML代码：</p>
<div>
<ol title="Double click to show line number." ondblclick = "linenumber(this)">
<li>&lt;form id=&quot;ff&quot; method=&quot;post&quot;&gt;</li>
<li>&#8230;</li>
<li>&lt;/form&gt;</li>
</ol>
</div>
<p>然后按照《<a href="http://www.ityizhan.com/jquery-easyui-document/" target="_blank">jQuery EasyUI框架使用文档</a>》包含必要文件后，只要在$(function(){ }); 里插入下面的代码即可：<br />
如果想使表单变成AJAX提交：</p>
<div>
<ol title="Double click to show line number." ondblclick = "linenumber(this)">
<li>$(&#8216;#ff&#8217;).form({</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;url:&#8230;,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;onSubmit: function(){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// do some check</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// return false to prevent submit;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;},</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;success:function(data){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(data)</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>});</li>
</ol>
</div>
<p><span></span><br />
如果想做提交的动作：</p>
<div>
<ol title="Double click to show line number." ondblclick = "linenumber(this)">
<li>$(&#8216;#ff&#8217;).form(&#8217;submit&#8217;, {</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;url:&#8230;,</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;onSubmit: function(){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// do some check</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// return false to prevent submit;</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;},</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;success:function(data){</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(data)</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</li>
<li>});</li>
</ol>
</div>
<p>这两段代码之有很小的一个差别就是在设置参数的时候有个&#8221;submit&#8221;，下面来详细介绍一下这些参数的用法：<br />
<strong>参数</strong></p>
<table border="1" width="505">
<tbody>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
<th>默认值</th>
</tr>
<tr>
<td>url</td>
<td>字符串</td>
<td>表单提交的地址</td>
<td>null</td>
</tr>
</tbody>
</table>
<p><strong>事件</strong></p>
<table border="1" width="505">
<tbody>
<tr>
<th>事件名</th>
<th>参数</th>
<th>描述</th>
</tr>
<tr>
<td>onSubmit</td>
<td>none</td>
<td>提交之前触发的事件，如果返回false可以防止提交</td>
</tr>
<tr>
<td>success</td>
<td>data</td>
<td>表单提交成功的时候触发</td>
</tr>
</tbody>
</table>
<p><strong>方法</strong></p>
<table border="1" width="506">
<tbody>
<tr>
<th>方法名</th>
<th>参数</th>
<th>描述</th>
</tr>
<tr>
<td>submit</td>
<td>options</td>
<td>执行提交的操作，选项的参数是一个对象，这个对象包括以下的属性：<br />
url：设置提交的地址；<br />
onSubmit：提交之前的回调函数<br />
submit：提交成功后的回调函数</td>
</tr>
<tr>
<td>load</td>
<td>data</td>
<td>加载记录来填充表单<br />
选项参数可以是一个字符串或者是一个对象，字符串意味着是一个远程地址，否则就是一个本地的数据记录</td>
</tr>
<tr>
<td>clear</td>
<td>none</td>
<td>清空表单数据</td>
</tr>
<tr>
<td>validate</td>
<td>none</td>
<td>表单字段的验证，如果返回true，则说明所有的字段都是合法的。这个方法可以和validatebox插件联合使用</td>
</tr>
</tbody>
</table>
<h2>相关文章导读</h2>
<ul>
<li><a href="http://www.ityizhan.com/jquery-easyui-combotree-usage/" title=" jQuery EasyUI 组合树(ComboTree)用法"> jQuery EasyUI 组合树(ComboTree)用法</a></li>
<li><a href="http://www.ityizhan.com/jquery-easyui-combobox-usage/" title=" jQuery EasyUI 组合框(ComboBox)用法"> jQuery EasyUI 组合框(ComboBox)用法</a></li>
<li><a href="http://www.ityizhan.com/jquery-easyui-splitbutton-usage/" title="jQuery EasyUI 分割按钮(SplitButton)用法">jQuery EasyUI 分割按钮(SplitButton)用法</a></li>
<li><a href="http://www.ityizhan.com/jquery-easyui-menubutton-usage/" title="jQuery EasyUI 菜单按钮(MenuButton)用法">jQuery EasyUI 菜单按钮(MenuButton)用法</a></li>
<li><a href="http://www.ityizhan.com/jquery-easyui-linkbutton-usage/" title=" jQuery EasyUI 链接按钮(LinkButton)用法"> jQuery EasyUI 链接按钮(LinkButton)用法</a></li>
</ul>
<p><img src="http://feeds.feedburner.com/~r/ityizhan/~4/sIxIEM0MicU" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenjianjun.com/?feed=rss2&amp;p=293</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
