<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[WindRand的专栏]]></title><description><![CDATA[Let's never let go of our friendship......]]></description><link>https://blog.youkuaiyun.com/WindRand</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; WindRand]]></copyright><item><title><![CDATA[在C#中实现CRC32算法。]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1492671</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1492671</guid><author>WindRand</author><pubDate>Sun, 21 Jun 2020 22:52:38 +0800</pubDate><description><![CDATA[usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;namespaceGetCRC32...{classCRC32Cls...{protectedulong[]Crc32Table;//生成CRC32码表pub]]></description><category></category></item><item><title><![CDATA[DELPHI中修改数据库中的图片文件]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/106892677</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/106892677</guid><author>WindRand</author><pubDate>Sun, 21 Jun 2020 22:51:05 +0800</pubDate><description><![CDATA[存入和读取比较方便，记录一下直接修改图片：

 ADOQuery1.Close;
 ADOQuery1.SQL.Clear;
 ADOQuery1.SQL.Add('update TPTab set MC=:MC,LX=:LX,TP=:TP where MC='''+mc_str+''' and LX='''+lx_str+'''');
 ADOQuery1.Parameters.ParamByName('MC').Value:=mc_com.Text;
 ADOQuery1.Parameters...]]></description><category></category></item><item><title><![CDATA[DBGridEh显示图片]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/106892555</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/106892555</guid><author>WindRand</author><pubDate>Sun, 21 Jun 2020 22:47:08 +0800</pubDate><description><![CDATA[很长时间没有用DELPHI，现在都已经更新10.3，之前的一个小程序需要增加个功能，就是在DBGridEh中直接显示图片，数据库（SQL2012），百度了N就找到的都是自绘或者换CxDBGrid，问题不想折腾，把DBGridEh自带的DEMO翻出来，研究后发现需要有控件明确从数据库里面读取的BLOB字段是图片类型，用DBGridEh里面的内存表控件或者Delphi自带的ADODataSet都可以，选用ADODataSet，点开需要设置的记录，设置属性BlobType为：ftGraphic，DBGridEh的]]></description><category></category></item><item><title><![CDATA[Android中Activity相关事件的顺序理解]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/83005838</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/83005838</guid><author>WindRand</author><pubDate>Thu, 11 Oct 2018 00:59:43 +0800</pubDate><description><![CDATA[理解Android的几个事件

onCreate-创建时调用

onStart-不可见到可见时调用

onResume-可见并与用户进行交互时调用

onPause-打开新activity(老的activity)或关闭activity(本activity)

onStop-新的窗口打开后，或者本窗口关闭老窗口显示后

onDestroy-本窗口关闭后执行onStop后执行

onRestart-本...]]></description><category></category></item><item><title><![CDATA[Error:Execution failed for task ':app:mergeDebugResources'问题解决]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/73064933</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/73064933</guid><author>WindRand</author><pubDate>Sun, 11 Jun 2017 20:05:53 +0800</pubDate><description><![CDATA[导入Eclipse项目后，编译提示这个错误，后来去网上找了很多资料，都没有解决，出现这个问题的时候，一定要点开Android studio右脚：






查看详细的错误原因是什么，也可以用在其他错误查看。]]></description><category></category></item><item><title><![CDATA[Android Studio乱码问题解决]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/73064920</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/73064920</guid><author>WindRand</author><pubDate>Sun, 11 Jun 2017 20:02:27 +0800</pubDate><description><![CDATA[从Eclipse导入项目，所有的文件中文都是乱码，编译就报一堆乱码，查看Settins中的设置默认是GBK，但是每个源码文件下的编码显示的是UTF-8，得一个一个的编程GBK，很是麻烦，只要在APP目录下的build.gradle中加上：

compileOptions.encoding="GBK"


重新编译一下，全部文件的乱码都解决了，这是由于gradle不支持编码问题引起的。]]></description><category></category></item><item><title><![CDATA[C#中实现软件使用次数限制]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/3866466</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/3866466</guid><author>WindRand</author><pubDate>Fri, 06 Feb 2009 16:23:00 +0800</pubDate><description><![CDATA[代码如下：using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Security.Cryptography;using Microsoft.Win32;//****************************************]]></description><category></category></item><item><title><![CDATA[解决Vista下文件名中带Update不能通过UAC认证的问题。 ]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1752614</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1752614</guid><author>WindRand</author><pubDate>Tue, 21 Aug 2007 12:09:00 +0800</pubDate><description><![CDATA[注：转载请注明出处。            这段时间把自己之前开发的系统移植到了Vista系统下，开始的时候程序还运行得好好的，调用在线升级以后，发展程序不正常了。打开程序所在的目录，发现在线升级程序图标右下角有了一个盾牌的标志（在线升级程序的名字为：GisUpdate.exe），说明在线升级程序没能通过Vista的UAC认证。Vista系统我自己也用的不多，主要是我用的开发工具在它下面都装不]]></description><category></category></item><item><title><![CDATA[在VC++中实现CRC32算法。]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1492723</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1492723</guid><author>WindRand</author><pubDate>Thu, 25 Jan 2007 03:00:00 +0800</pubDate><description><![CDATA[//动态生成CRC32的码表unsigned long Crc32Table[256];void GetCRC32Table()...{   int i,j;   unsigned long Crc;   for (i = 0; i  256; i++)    ...{        Crc = i;        for (j = 0; j  8; j++)        ...{     ]]></description><category></category></item><item><title><![CDATA[转换GMT秒数为日期时间格式-VC++源码。]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1489598</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1489598</guid><author>WindRand</author><pubDate>Mon, 22 Jan 2007 03:27:00 +0800</pubDate><description><![CDATA[最近在写PE分析工具的时候，需要转换TimeDateStamp字段值为日期时间格式，这是VC++的源码。  //把GMT时间的秒数转换成日期时间格式CTime GetGMTDateTime(long Value)...{    //GMT时间从1970年1月1日开始，先把它作为赋为初值    int Year=1970, Month=1, Day=1;    int Hour=0, Min]]></description><category></category></item><item><title><![CDATA[转换GMT秒数为日期时间格式-C#源码。]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1489596</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1489596</guid><author>WindRand</author><pubDate>Mon, 22 Jan 2007 03:26:00 +0800</pubDate><description><![CDATA[最近在写PE分析工具的时候，需要转换TimeDateStamp字段值为日期时间格式，这是C#的源码。namespace GMTPro...{    public partial class Form1 : Form    ...{        public Form1()        ...{            InitializeComponent();        }    ]]></description><category></category></item><item><title><![CDATA[转换GMT秒数为日期时间格式-Delphi源码。]]></title><link>https://blog.youkuaiyun.com/WindRand/article/details/1489594</link><guid>https://blog.youkuaiyun.com/WindRand/article/details/1489594</guid><author>WindRand</author><pubDate>Mon, 22 Jan 2007 03:14:00 +0800</pubDate><description><![CDATA[最近在写PE分析工具的时候，需要转换TimeDateStamp字段值为日期时间格式，这是Delphi的源码。 //把GMT时间的秒数转换成日期时间格式function GetGMTDateTime(Value:Int64):TDateTime;var  Year,Month,Day:Word;  Hour,Min,Sec,MSec:Word;  iYear,iDay:Word;  iHou]]></description><category></category></item></channel></rss>