<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://feeds.qzone.qq.com/rss.xsl" version="1.0"?>
<rss version="2.0" xmlns:qz="http://qzone.qq.com">
<channel>
<title><![CDATA[vithing]]></title>
<description><![CDATA[微星的编程轨迹]]></description>
<link>http://54931104.qzone.qq.com</link>
<lastBuildDate>Tue, 01 Dec 2009 14:59:45 GMT</lastBuildDate>
<generator>Qzone</generator>
<language>zh-cn</language>
<copyright>Copyright (C), 2005-2008, Tencent Tech. Co., Ltd.</copyright>
<pubDate>Thu, 17 Sep 2009 16:33:16 GMT</pubDate>

<item>
<title><![CDATA[模拟鼠标出现的问题]]></title>
<link>http://54931104.qzone.qq.com/blog/1253205196</link>
<description><![CDATA[现在遇到问题如下:<br>　　向另一个进程发送鼠标左键按下消息,spy监视我PostMessage的坐标和我在那个进程手工点击的消息是同一点,但是却没达到目的,目标进程执行时候解析得到的坐标不是我想要的,并且和消息传过去的坐标好像没关系到是和我在发消息的进程的位置有关,比如说在操作进程点控件计算位置发245,241点击消息,spy监测到245,241点击消息以传递到目标进程,但是实际出现的结果却不是我想要的,而且我在左边点击目标程序执行点向左偏,在右边点向右偏,直观的感觉是目标进程得到的点是<span style="color:#ff0000;line-height:1.8em;">我在操作进程点击穿透窗口在目标进程的窗口又点上了,和消息传送的坐标没关系.</span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[我的问题]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1253205196#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 17 Sep 2009 16:33:16 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1253205196</guid>
</item>

<item>
<title><![CDATA[设计时没考虑好遭遇尴尬]]></title>
<link>http://54931104.qzone.qq.com/blog/1249610602</link>
<description><![CDATA[写的一个内存分析的辅助程序，当时做成这样。 <br><wbr /><a href="http://b23.photo.store.qq.com/http_imgload.cgi?/rurl4_b=220784f5227c46535fdcafbc3b39dc09b301d7f373afab1be83e3aa449cf45b41af70f800f27b4d397e98891371323fdbb1c855c60d5ac32240820e4feddac0e16904304117991b6d574f73bd36d96da881d98f4" target="_blank"><img style="width:500px;height:477px;border:0;" src="http://b23.photo.store.qq.com/http_imgload.cgi?/rurl4_b=220784f5227c46535fdcafbc3b39dc09b301d7f373afab1be83e3aa449cf45b41af70f800f27b4d397e98891371323fdbb1c855c60d5ac32240820e4feddac0e16904304117991b6d574f73bd36d96da881d98f4" /></a><wbr /> <br>可是后来觉得不够用的，要显示二级指针这下可坏了，弄到第250个控件后说什么也不能再增加了，只好改 <br>成下图形式，晕啊，可怜的我白排那些控件了。 <br><wbr /><a href="http://b23.photo.store.qq.com/http_imgload.cgi?/rurl4_b=220784f5227c46535fdcafbc3b39dc090659c2143f89cdeaba7c8b5e3696ca70062de3629a07f6b502c03bf721056fc7b7fb7efca7c93686c34df102f8fec79ccf4b827cbd9064ab3b1d9b56b035cc7f9bda6c1f" target="_blank"><img style="width:500px;height:360px;border:0;" src="http://b23.photo.store.qq.com/http_imgload.cgi?/rurl4_b=220784f5227c46535fdcafbc3b39dc090659c2143f89cdeaba7c8b5e3696ca70062de3629a07f6b502c03bf721056fc7b7fb7efca7c93686c34df102f8fec79ccf4b827cbd9064ab3b1d9b56b035cc7f9bda6c1f" /></a><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[个人日记]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1249610602#comment</comments>
<qz:effect>134218241</qz:effect>
<pubDate>Fri, 07 Aug 2009 02:03:22 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1249610602</guid>
</item>

<item>
<title><![CDATA[关于CString 成员函数GetLength的困惑]]></title>
<link>http://54931104.qzone.qq.com/blog/1249566892</link>
<description><![CDATA[CString 的成员函数GetLength()我原来理解是的到串的长度，没想到今天用时原来用的正常的一个函数怎么都不正确，经调试发现GetLength()得到的不是串的长度，而是缓冲区的长度，如果此时字符串只做显示用没有关系，但是有些操作就会严重影响程序的正确性，比如说将一字符串转成十六进制数，仔细看MSDN觉得也没有描述清楚。 <br> <br>CString::GetLength <span style="font-weight:bold"><wbr />int</span><wbr /> <span style="font-weight:bold"><wbr />GetLength(</span><wbr /> <span style="font-weight:bold"><wbr />)</span><wbr /> <span style="font-weight:bold"><wbr />const;</span><wbr /> <br><span style="font-weight:bold"><wbr />Return Value</span><wbr /> <br>A count of the bytes in the string. <br><span style="font-weight:bold"><wbr />Remarks</span><wbr /> <br>Call this member function to get a count of the bytes in this <span style="font-weight:bold"><wbr />CString</span><wbr /> object. The count does not include a null terminator. <br>For multibyte character sets (MBCS), <span style="font-weight:bold"><wbr />GetLength</span><wbr /> counts each 8-bit character; that is, a lead and trail byte in one multibyte character are counted as two bytes. <br><span style="font-weight:bold"><wbr />Example</span><wbr /> <br>The following example demonstrates the use of <span style="font-weight:bold"><wbr />CString::GetLength</span><wbr />. <br>明明写着The count does not include a null terminator，可是我用GetLength()却返回了包含了\0和它以后的数据的统计值，既是得到的是缓冲区的长度，不知微软怎么想的。 <!--v:3.2--> ]]></description>
<category><![CDATA[我的问题]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1249566892#comment</comments>
<qz:effect>134218304</qz:effect>
<pubDate>Thu, 06 Aug 2009 13:54:52 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1249566892</guid>
</item>

<item>
<title><![CDATA[简单的函数地址问题弄了2天]]></title>
<link>http://54931104.qzone.qq.com/blog/1247733074</link>
<description><![CDATA[编译环境windowsxp,vc6.0 <br>由于写的程序进行远线程注入，注入的函数体用汇编语言写的 <br>void ThreadProc( ) <br> _asm{ <br>   PUSH ECX <br>   PUSH EDX <br>   mov  esi,0x****** <br>   mov  esi,[esi] <br>   mov  eax,[esi+0x***] <br>   PUSH * <br>   PUSH esi <br>   PUSH * <br>   PUSH * <br>   push   * <br>   mov  eax,[esi+0x***] <br>   mov  ebx,eax <br>   mov     ecx, esi <br>   call    codecall <br>   pop     edi <br>   pop     esi <br>   mov     esp,ebp <br>   pop  ebp <br>   ret <br> } <br>  <br>。。。 <br>WriteProcessMemory(openedHand,pRemoteThread,&amp;ThreadProc,THREADSIZE,0)//ThreadProc远线程函数名 <br>注入时程序老是得不到函数正确的起始地址，而且被注入的程序也是个比较牛的程序采,用的Themida2.x的壳调试起来非常困难，跟老鼠是的瞎撞，1天的时间终于解决了原来函数申明时应声明static类型，并且LNK要将Link incremental选项关掉，可是为什么还不清楚；后来远线程调试发现函数也比我的汇编代码多些,编译器给附加了点东西害的我调整堆栈平衡调了好半天，要不老是注入运行完成后把对方弄崩了 :) <!--v:3.2--> ]]></description>
<category><![CDATA[我的问题]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1247733074#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 16 Jul 2009 08:31:14 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1247733074</guid>
</item>

<item>
<title><![CDATA[极简单的HTML却让我百思不得其解，这到底为什么？]]></title>
<link>http://54931104.qzone.qq.com/blog/1232294804</link>
<description><![CDATA[&lt;!-- 出现的问题是浏览选择文件后第一次点提交没有反应，第二次点提交表单提交但选择的文件却不在提交数据中（也就是说没有提交上传文件的数据） //--&gt;<br>&lt;html&gt;<br>&lt;body&gt;<br>&lt;SCRIPT language=&quot;javascript&quot;&gt;<br>&lt;!--<br>function form_onsubmit()<br>{<br> if (document.myform.classname.value == &quot;&quot;)<br> {<br>  alert (&quot;请输入文件的说明的标题!&quot;);<br>  document.myform.classname.focus();<br>  return false;<br> }<br>if (document.myform.classsort.value == &quot;&quot;) {<br> alert(&quot;请输入文件的显示牌序号!&quot;);<br> document.myform.classsort.focus();<br> return false;<br> }<br>if (document.myform.classpic.value == &quot;&quot;) {<br> alert(&quot;请输入文件的完整路径!&quot;);<br> document.myform.classpic.focus();<br> return false;<br> }<br> return true;<br>}<br>//--&gt;<br>&lt;/SCRIPT&gt;<br>&lt;br&gt;<br>&lt;br&gt;<br>&lt;br&gt;<br>&lt;table class=&quot;mytable&quot; width=&quot;65%&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot;&gt;<br>          &lt;form name=myform method=&quot;post&quot; enctype=&quot;multipart/form-data&quot; action=&quot;std_files_add.asp?fs=3&quot; onSubmit=&quot;return form_onsubmit()&quot; onerror=&quot;alert(err);&quot;&gt;<br>            &lt;tr&gt;<br>              &lt;td height=&quot;30&quot; colspan=&quot;2&quot; align=&quot;center&quot;&gt;&amp;nbsp;&lt;/td&gt;<br>            &lt;/tr&gt;<br>    &lt;tr align=center&gt;<br>              &lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;&lt;font color=&quot;#ffffff&quot;&gt;添加双语教学课程建设&lt;/font&gt;&lt;/b&gt; 表格或标准文件&lt;/td&gt;<br>            &lt;/tr&gt;<br>            &lt;tr&gt;<br>              &lt;td width=9% align=center&gt;&lt;input name=&quot;act&quot; type=&quot;hidden&quot; id=&quot;act&quot; value=&quot;add&quot;&gt;<br>                &lt;input name=&quot;BigClassID2&quot; type=&quot;hidden&quot; id=&quot;BigClassID2&quot; value=&quot;3&quot;&gt;&lt;/td&gt;<br>              &lt;td width=21% align=center&gt;&amp;nbsp;&lt;/td&gt;<br>              &lt;/tr&gt;<br>          <br>                    &lt;tr&gt; <br>                  &lt;td align=&quot;right&quot;&gt;标题：&lt;/td&gt;<br>                  &lt;td&gt;&lt;input name=&quot;classname&quot; type=&quot;text&quot; class=rectsize id=&quot;classname&quot; size=&quot;45&quot; maxlength=&quot;50&quot; value=&quot;&quot;&gt;&lt;/td&gt;<br>                &lt;/tr&gt;<br>                    &lt;tr&gt;<br>                      &lt;td align=&quot;right&quot;&gt;排序：&lt;/td&gt;<br>                            &lt;td&gt;&lt;input name=&quot;classsort&quot; type=&quot;text&quot; class=rectsize id=&quot;classsort&quot; size=&quot;25&quot; maxlength=&quot;50&quot; value=&quot;&quot;&gt;&lt;/td&gt;<br>  &lt;/tr&gt;<br>                    &lt;tr&gt;<br>                      &lt;td align=&quot;right&quot;&gt;表格或标准文件：&lt;/td&gt;<br>                            &lt;td&gt;<br>       &lt;input   name=&quot;file1&quot;   id=&quot;file1&quot;   type=&quot;file&quot;   style=&quot;display:none;&quot;   /&gt;<br>       &lt;input   name=&quot;classpic&quot;   id=&quot;classpic&quot; type=&quot;text&quot; value=&quot; &quot;   style=&quot;width:300;&quot;   /&gt;<br>       &lt;input   name=&quot;button1&quot;   type=&quot;button&quot;   value=&quot;浏览...&quot;     <br>  onclick=&quot;document.all.file1.click();if(document.all.file1.value.length&gt;0){document.all.classpic.value=document.all.file1.value;document.all.classpic.focus();}&quot;   /&gt;   <br>       &lt;/td&gt;<br>  &lt;/tr&gt;<br>                    &lt;tr&gt;<br>                      &lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;<br>    &lt;/tr&gt;<br>                    &lt;tr&gt;<br>                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br>                            &lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot; 提  交 &quot;&gt;&lt;/td&gt;<br>  &lt;/tr&gt;&lt;/form&gt;<br>            &lt;tr&gt;<br>              &lt;td height=&quot;30&quot; colspan=&quot;2&quot; align=&quot;center&quot;&gt;&amp;nbsp;&lt;/td&gt;<br>            &lt;/tr&gt;  <br>        &lt;/table&gt;<br>   &lt;/td&gt;<br>  &lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;iframe src=&quot;locked.asp&quot; frameborder=0 scrolling=&quot;no&quot; width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;/iframe&gt;<br>&lt;table width=&quot;100%&quot; height=&quot;28&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;HeaderTdStyle&quot;&gt;<br>  &lt;tr&gt; <br>    &lt;td&gt; <br>      &lt;table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;2&quot;&gt;<br>        &lt;tr&gt; <br>          &lt;td width=&quot;79%&quot; align=&quot;right&quot;&gt;&lt;font face=&quot;Verdana, Arial&quot; size=&quot;1&quot;&gt;&lt;div class=&quot;Btn&quot; TITLE=&quot;桌面颜色&quot; LANGUAGE=&quot;javascript&quot; onClick=&quot;DeskBgColor()&quot;&gt; &lt;img src=&quot;../manage/ubbimg/desktop.gif&quot; WIDTH=&quot;20&quot; HEIGHT=&quot;20&quot;&gt; <br>  &lt;/div&gt;<br>          &lt;/font&gt;&lt;/td&gt;<br>          &lt;td width=&quot;21%&quot; align=&quot;right&quot;&gt;&lt;font face=&quot;Verdana, Arial&quot; size=&quot;1&quot;&gt;Program By &lt;/font&gt;&lt;a href='mailto:weixing_1976@163.com'&gt;weixing&lt;/a&gt; QQ:54931104&lt;/td&gt;<br>        &lt;/tr&gt;<br>      &lt;/table&gt;&lt;/td&gt;<br>  &lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br> <!--v:3.2--> ]]></description>
<category><![CDATA[我的问题]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1232294804#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Sun, 18 Jan 2009 16:06:44 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1232294804</guid>
</item>

<item>
<title><![CDATA[网络上10条让人抓狂的整人短信（转）]]></title>
<link>http://54931104.qzone.qq.com/blog/1232294162</link>
<description><![CDATA[▲你跌倒，我就跑上去———踩两脚！<br><br>▲ 一口气读完看你晕不晕：<span style="font-weight:bold"><wbr />在乎你的我只在乎我在乎的你是否在乎在乎你的我，我在乎的你是否和在乎你的我在乎的你一样在乎在乎你的我。到底是我在乎你还是你在乎我？<br><br></span><wbr />▲天下雨了，是云儿哭了；失去你了，是爱情输了；风儿累了，要去睡了，夕阳醉了，要下坠，唱歌的我，很疲惫了，看信息的猪啊，也该喂了！<br><br>▲记不记得那天你问道：猪的英文怎么拼？我说是PUG，而你却说是：PIG。我说猪是U，你却说猪是I，那没办法，只好随你了！<br><br>▲蛐蛐和狗熊打赌说：我跳进草里你看不到，狗熊不信，蛐蛐一下跳进草里，狗熊在看，狗熊还在看，狗熊咋还在看哪？熊样！别看了！<br><br>▲以后要注意点自己的形象，你已不是小孩子！别老跟以前似的。昨天又有人看到你端着个酒杯追着一头猪，嘴里还大叫：是不是兄弟？是兄弟就干了！<br><br>▲听着！我要追你！我就认定你了！我一直以来要找的就是你了！这次机会我绝对会好好把握的！我一定要追到你为止！死苍蝇！我拍死你！<br><br>▲某男玩蚱蜢，放了它抓回来，放了它抓回来———一连抓放七次，蚱蜢哭了：大哥，您是诸葛亮吧？我不是孟获啊！<br><br>▲狼来了，猪窝里慌乱不安，猪妈安排工作：大猪快去堵门！二猪快去堵窗！当看到小猪时，猪妈来火了，大叫：小猪！不要玩手机啦！你肉多！出去把狼引开！ <br><br>▲天气变得好快，寒风悄悄袭来，因为你的可爱，所以给你关怀，晚上毯子要盖，别把猪脚冻坏，没事叼根骨头，那样可以补钙！ <!--v:3.2--> ]]></description>
<category><![CDATA[个人日记]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1232294162#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Sun, 18 Jan 2009 15:56:02 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1232294162</guid>
</item>

<item>
<title><![CDATA[历史上最经典智力题]]></title>
<link>http://54931104.qzone.qq.com/blog/1230105715</link>
<description><![CDATA[<span style="font-size:13px;line-height:1.8em;">历史上最经典智力题 转载<br>1、有两根不均匀分布的香，香烧完的时间是一个小时，你能用什么方法来确定一段15分钟的时间？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">２、一个经理有三个女儿，三个女儿的年龄加起来等于13，三个女儿的年龄乘起来等于经理自己的年龄，有一个下属已知道经理的年龄，但仍不能确定经理三个女儿的年龄，这时经理说只有一个女儿的头发是黑的，然后这个下属就知道了经理三个女儿的年龄。请问三个女儿的年龄分别是多少？为什么？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">3、有三个人去住旅馆，住三间房，每一间房$10元，于是他们一共付给老板$30， <br>第二天，老板觉得三间房只需要$25元就够了于是叫小弟退回$5给三位客人， <br>谁知小弟贪心,只退回每人$1，自己偷偷拿了$2，这样一来便等于那三位客人每人各花了九元， <br>于是三个人一共花了$27，再加上小弟独吞了不$2，总共是$29。可是当初他们三个人一共付出$30那么还有$1呢？  </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">４、有两位盲人，他们都各自买了两对黑袜和两对白袜，八对袜了的布质、大小完全相同， <br>而每对袜了都有一张商标纸连着。两位盲人不小心将八对袜了混在一起。他们每人怎样才能取回黑袜和白袜各两对呢？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">５、有一辆火车以每小时15公里的速度离开洛杉矶直奔纽约，另一辆火车以每小时20公里的速度从纽约开往洛杉矶。如果有一只鸟，以30公里每小时的速度和两辆火车同时启动，从洛杉矶出发，碰到另一辆车后返回，依次在两辆火车来回飞行，直到两辆火车相遇，请问，这只小鸟飞行了多长距离？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">６、你有两个罐子，50个红色弹球，50个蓝色弹球，随机选出一个罐子，随机选取出一个弹球放入罐子，怎么给红色弹球最大的选中机会？在你的计划中，得到红球的准确几率是多少？  </span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">７、你有四个装药丸的罐子，每个药丸都有一定的重量，被污染的药丸是没被污染的重量＋1.只称量一次，如何判断哪个罐子的药被污染了？ </span><wbr /><br><br><span style="font-size:13px;line-height:1.8em;">８、你有一桶果冻，其中有％％，绿色，红色三种，闭上眼睛，抓取两个同种颜色的果冻。抓取多少个就可以确定你肯定有两个同一颜色的果冻？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">９、对一批编号为1～100，全部开关朝上(开)的灯进行以下*作：凡是1的倍数反方向拨一次开关；2的倍数反方向又拨一次开关；3的倍数反方向又拨一次开关……问：最后为关熄状态的灯的编号。 </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">１０、想象你在镜子前，请问，为什么镜子中的影像可以颠倒左右，却不能颠倒上下？ </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">１１、一群人开舞会，每人头上都戴着一顶帽子。帽子只有黑白两种，黑的至少有一顶。每个人都能看到其它人帽子的颜色，却看不到自己的。主持人先让大家看看别人头上戴的是什幺帽子，然后关灯，如果有人认为自己戴的是黑帽子，就打自己一个耳光。第一次关灯，没有声音。于是再开灯，大家再看一遍，关灯时仍然鸦雀无声。一直到第三次关灯，才有劈劈啪啪打耳光的声音响起。问有多少人戴着黑帽子？</span><wbr /><br><span style="font-size:13px;line-height:1.8em;">１2、两个圆环，半径分别是1和2，小圆在大圆内部绕大圆圆周一周，问小圆自身转了几周？如果在大圆的外部，小圆自身转几周呢？  </span><wbr /><br><span style="font-size:13px;line-height:1.8em;">13。 1元钱一瓶汽水，喝完后两个空瓶换一瓶汽水，问：你有20元钱，最多可以喝到几瓶汽水？ </span><wbr /> <!--v:3.2--> ]]></description>
<category><![CDATA[个人日记]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1230105715#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Wed, 24 Dec 2008 08:01:55 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1230105715</guid>
</item>

<item>
<title><![CDATA[006~ASP 0206~Cannot call BinaryRead~Cannot call BinaryRead after using Request.Form collection.]]></title>
<link>http://54931104.qzone.qq.com/blog/1229761500</link>
<description><![CDATA[006~ASP 0206~Cannot call BinaryRead~Cannot call BinaryRead after using Request.Form collection. <br>     <br>    利用无组件上传时碰到了这个问题，原来也遇到过，但很长时间没有用asp了，因此花了2个多小时深入研究并解决了此问题。 <br><br>1。产生问题的原因是当表单的提交方式是enctype=&quot;application/x-www-form-urlencoded&quot;时，在获取数据时先使用request或是request.form取过数据，然后再使用BinaryRead就产生此错误。 <br><br>2。解决的办法是不用request或request.form获取表单中的元素值。例如使用梁无惧的无组件上传类时 <br>for each formName in upload.form ''获得所有表单元素值 <br>select case formName <br>  case &quot;act&quot; <br>   act   = trim(upload.form(formName)) <br>  case &quot;classname&quot; <br>   classname = trim(upload.form(formName)) <br>  case &quot;classsort&quot; <br>   classsort = trim(upload.form(formName)) <br>  case &quot;classpic&quot; <br>   classpic = trim(upload.form(formName)) <br>  case &quot;BigClassID2&quot; <br>   BigClassID = trim(upload.form(formName)) <br>  case &quot;mono&quot; <br>   mono  = trim(upload.form(formName))   <br>  ...... <br>  end select <br>next <br>如果使用其他的上传组件，利用相同的原理就可以避免错误的出现。<br>同时也要注意如果提交方式是 enctype=&quot;application/x-www-form-urlencoded&quot; 时用上述代码也会出现相同的错误。 <!--v:3.2--> ]]></description>
<category><![CDATA[ASP编程]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1229761500#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Sat, 20 Dec 2008 08:25:00 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1229761500</guid>
</item>

<item>
<title><![CDATA[根据指定目录的子目录日期决定是否删除子目录]]></title>
<link>http://54931104.qzone.qq.com/blog/1228369555</link>
<description><![CDATA[''根据指定目录的子目录日期决定是否删除过期的子目录<br>''指定目录中的文件也根据日期决定是否删除<br>Dim diff <br><br>Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;) <br>objStartFolder = &quot;D:\install\Chat&quot; <br>Set objFolder = objFSO.GetFolder(objStartFolder) <br>strDate = Split(objFolder.DateCreated,&quot; &quot;) <br>If DateDiff(&quot;d&quot;,Date,strDate(0)) &gt; 5 Then <br>        objfso.DeleteFolder objfolder <br>End If <br>Set colFiles = objFolder.Files <br>For Each objFile in colFiles <br>        strDate = Split(objfile.DateCreated,&quot; &quot;) <br>   <br>  diff = abs(DateDiff(&quot;d&quot;,Date,strDate(0))) <br>        If diff &gt; 5 Then <br>                objfso.DeleteFile objfile <br>     End if <br>Next <br>call ProcessSubfolders(objFSO.GetFolder(objStartFolder),0) <br><br><br>Sub ProcessSubfolders(Folder,Fun) <br>Dim diff <br>        On Error Resume next <br>    For Each Subfolder in Folder.SubFolders <br>                strDate = Split(SubFolder.DateCreated,&quot; &quot;) <br>    diff = abs(DateDiff(&quot;d&quot;,Date,strDate(0))) <br>if len(subfolder)&gt;0 then <br>     If diff &gt; 5 Then <br>      objfso.DeleteFolder subfolder <br>   End If <br>End If <br>Next <br>End Sub <!--v:3.2--> ]]></description>
<category><![CDATA[程序算法]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1228369555#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 04 Dec 2008 05:45:55 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1228369555</guid>
</item>

<item>
<title><![CDATA[删除指定目录下的所有过期文件和所有超过2层的子目录]]></title>
<link>http://54931104.qzone.qq.com/blog/1228359177</link>
<description><![CDATA[&lt;% <br>''删除指定目录下的所有过期文件和所有超过2层的子目录 <br>''比如TEMP下有个1文件夹，要判断1文件夹的日期，过期删除，如1文件夹下还有子文件夹不做判断 <br><br>Dim diff <br><br>Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;) <br>objStartFolder = &quot;D:\install\Chat&quot; <br>Set objFolder = objFSO.GetFolder(objStartFolder) <br>strDate = Split(objFolder.DateCreated,&quot; &quot;) <br>If DateDiff(&quot;d&quot;,Date,strDate(0)) &gt; 5 Then <br>        objfso.DeleteFolder objfolder <br>End If <br>Set colFiles = objFolder.Files <br>For Each objFile in colFiles <br>        strDate = Split(objfile.DateCreated,&quot; &quot;) <br>   <br>  diff = abs(DateDiff(&quot;d&quot;,Date,strDate(0))) <br>        If diff &gt; 5 Then <br>                objfso.DeleteFile objfile <br>     End if <br>Next <br>call ShowSubfolders(objFSO.GetFolder(objStartFolder),0) <br><br><br>Sub ShowSubFolders(Folder,Fun) <br>Dim diff <br>        On Error Resume next <br>    For Each Subfolder in Folder.SubFolders <br>                strDate = Split(SubFolder.DateCreated,&quot; &quot;) <br>    diff = abs(DateDiff(&quot;d&quot;,Date,strDate(0))) <br>if len(subfolder)&gt;0 then <br>      If Fun&lt;1 Then <br>       If diff &gt; 5 Then <br>      objfso.DeleteFolder subfolder <br>      subfolder=&quot;&quot; <br>      continue <br>     End If <br>     <br>    Else <br>      objfso.DeleteFolder subfolder <br>      subfolder=&quot;&quot; <br>      continue <br>    End If <br>     <br>        Set objFolder = objFSO.GetFolder(Subfolder.Path) <br>        Set colFiles = objFolder.Files <br>        For Each objFile in colFiles <br>                strDate = Split(objfile.DateCreated,&quot; &quot;) <br>    diff = abs(DateDiff(&quot;d&quot;,Date,strDate(0))) <br>    IF Fun&lt;=1 Then <br>     If diff &gt; 5 Then <br>         objfso.DeleteFile objfile <br>     End if <br>    Else <br>     objfso.DeleteFile objfile <br>    End if <br>        Next <br>  end if <br>        call ShowSubFolders(Subfolder,Fun+1) <br>    Next <br>End Sub <br>%&gt; <!--v:3.2--> ]]></description>
<category><![CDATA[程序算法]]></category>
<author><![CDATA[54931104@qq.com(vithing)]]></author>
<comments>http://54931104.qzone.qq.com/blog/1228359177#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 04 Dec 2008 02:52:57 GMT</pubDate>
<guid>http://54931104.qzone.qq.com/blog/1228359177</guid>
</item>

</channel>
</rss>

