摘要: PS学习笔记 常用快捷键 快捷键 功能 Ctrl+T 自由变换 Ctrl+Alt+Shift+T 复制图层+再次变换 Alt+Del 以前景色填充 Ctrl+Del 以背景色填充 Ctrl+I 反相 图层相关 Ctrl+Shift+N 新建图层 Ctrl+J 复制图层 Ctrl+E 向下合并 Ctrl+Alt+Shift+E 盖印图层 Ctr... 阅读全文
posted @ 2015-10-14 15:35 叮叮当当 阅读(2625) 评论(0) 推荐(0) 编辑
摘要: Python2.6.6的ElementTree输出xml中汉字变成&#xxxx的问题:# coding: gbkimport xml.etree.ElementTree as ET rootelem = ET.Element("SystemList")organization = ET.SubElement(rootelem, "Organization") organization.attrib["label"] = "<空>"organization.attrib["id" 阅读全文
posted @ 2013-05-22 18:28 叮叮当当 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 大家都知道PostMessage会丢消息,但是消息队列的大小是多少呢,下面做了一个测试。代码: 1 unit Unit1; 2 3 interface 4 5 uses 6 Windows, Messages, SysUtils, Variants, Classes, Graphics... 阅读全文
posted @ 2013-03-31 12:42 叮叮当当 阅读(3289) 评论(1) 推荐(0) 编辑
摘要: 使用Delphi对Json中的Unicode字符串进行解析:[{"name":"\u97e9\u56fd\u9996\u5c14KT\u670d\u52a1\u5668","ip":"211.115.67.40"},{"name":"\u97e9\u56fd\u5357\u90e8","ip":"211.115.67.40"}]function TForm1.DecodeUnicodeString(const S: string): s 阅读全文
posted @ 2013-03-10 17:26 叮叮当当 阅读(448) 评论(0) 推荐(0) 编辑
摘要: Delphi6下使用Indy10组件包,其中的TIdHttpServer控件在处理HTTP请求的时候不能正确解码含有汉字的参数,如:http://127.0.0.1/test?cmd=open&areaname=测试&areadir=D:\test对于这个Url,Chrome默认按UTF-8编码发送,IE默认按GBK编码发送,而这两种情况,TIdHttpServer的CommandGet事件中TIdHTTPRequestInfo.Params.Values['areaname']返回的均为乱码。用POST方式测试,也存在同样的问题。经过分析Indy的源码,发现主 阅读全文
posted @ 2013-03-10 17:20 叮叮当当 阅读(2822) 评论(0) 推荐(0) 编辑
摘要: 代码参考自lailx的博客:获取文件大小的4种方法(http://www.cnblogs.com/lailx/archive/2011/11/20/2256550.html) 1 // TestGetFileSize.cpp : Defines the entry point for the console application. 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <windows.h> 7 #include <io.h> 8 #include & 阅读全文
posted @ 2013-02-25 16:56 叮叮当当 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 如何转换和输出超大整数(64位) 开发环境:WIN7(32位)、VC6 阅读全文
posted @ 2011-01-28 13:23 叮叮当当 阅读(565) 评论(0) 推荐(0) 编辑
摘要: LuaPlus的编译和引用 阅读全文
posted @ 2011-01-28 13:14 叮叮当当 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: 我们都知道在VC里可以通过Windows API函数GetPrivateProfileString()、WritePrivateProfileString()来读写Ini文件,但其实MFC写好的CWinApp类里也具备读写Ini文件的能力,而且使用更为方便。 阅读全文
posted @ 2010-09-01 15:16 叮叮当当 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Delphi使用Indy和ICS组件读取网页的示例。 阅读全文
posted @ 2010-08-25 12:50 叮叮当当 阅读(2643) 评论(0) 推荐(1) 编辑