摘要: 实现异步编程有4种方法可供选择,这4种访求实际上也对应着4种异步调用的模式,分为“等待”和“回调”两大类。 Title一、使用EndInvoke; 二、使用WaitHanle; 三、轮询; 四、回调。 一、使用EndInvoke 当使用BeginInvoke异步调用方法时,如果方法未执行完,EndInvoke方法就会一直阻塞,直到被调用的方法执行完毕,如下面的代码: Ellic's Code 1 using System; 2 using System.Threading; 3 namespace MetadataSample 4 { 5 class Progra... 阅读全文
posted @ 2012-09-05 14:01 许明吉博客 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 对于数码相机所拍摄出的图片,Exif信息非常重要.参考网上的文章,结合我的实际需求,整理了一下,一共三个类文件EXIFextractor .cs,Translation.cs,EXIFMetaData,cs (Translation.cs,EXIFMetaData,cs 参看用C#读取图片的EXIF信息2) ///EXIFextractor .cs using System;using System.Text;using System.Collections;using System.Drawing.Imaging;using System.Reflection;using System.IO 阅读全文
posted @ 2012-08-30 11:07 许明吉博客 阅读(3347) 评论(1) 推荐(3) 编辑
摘要: public void FindExifinfo(string filePath){ Image img = Image.FromFile(filePath); PropertyItem[] pt = img.PropertyItems; for (int i = 0; i < pt.Length; i++) {PropertyItem p = pt[i]; switch (pt[i].Id){ // 设备制造商 20. ... 阅读全文
posted @ 2012-08-29 18:28 许明吉博客 阅读(1059) 评论(0) 推荐(1) 编辑
摘要: [转]C#读取EXIF信息类ExifWorksusing System;using System.Collections.Generic;using System.Text;namespace ExifWorks{// // Utility class for working with EXIF data in images. Provides abstraction// for most common data and generic utilities for work with all other. // // // Copyright (c) Michal A. Valáše 阅读全文
posted @ 2012-08-29 18:21 许明吉博客 阅读(5898) 评论(0) 推荐(0) 编辑
摘要: Delphi 2010安装及使用UniDAC 4.0 . 分类: unidac 2012-04-08 11:30 77人阅读 评论(0) 收藏 举报UniDAC是一个功能强大的非可视化跨数据库的数据访问组件,可用于Delphi,Delphi for .NET,C++Builder,and Lazarus (Free Pascal)。它提供了对流行数据库服务器的统一访问,像Oracle,Microsoft SQL Server,MySQL,InterBase,Firebird,PostgreSQL,SQLite,DB2,Microsoft Access,Sybase Advantage D... 阅读全文
posted @ 2012-07-09 21:40 许明吉博客 阅读(9231) 评论(2) 推荐(1) 编辑
摘要: 以前整理的Win32API,可以直接在C#中直接调用,在做WinForm时还是很有帮助的。以前用在一个多窗口界面中,当轮询窗口时,调用API会提高很多效率。 源码下载 http://files.cnblogs.com/lordeo/win32api.rar 源码包含三个文件Win32API.cs,Enums.cs,Structs.cs分别如下 Win32API.cs using System;using System.Drawing;using System.Runtime.InteropServices;using Lordal.Window.Form.Lib.General;using L 阅读全文
posted @ 2012-06-29 14:24 许明吉博客 阅读(20084) 评论(0) 推荐(4) 编辑
摘要: 本文的目的在于采用流水账方式来记录学习delphi访问嵌入式数据库sqlite中的一些点滴。欢迎各位同好共同学习和批评指正。file:1 准备工作part1 delphi版本:delphi2007 for win32 update3。任意安装版本即可。sqlite dll版本:3.5.3。目前最新版本的sqlite引擎。[ http://www.sqlite.org/ ]sqlite for delphi:simple sqlite 3.0 for delphi。目前的最新版本的发布日期为27 August 2007,支持sqlite dll版本3.4.2。经简单测试,3.5.3也是可以的。自 阅读全文
posted @ 2012-06-02 22:01 许明吉博客 阅读(5418) 评论(0) 推荐(0) 编辑
摘要: 一,准备工作。1.1安装Delphi2010。1.2获得FastReport 4.9.31。二,FastReport文件夹下LibD14目录添加到Delphi中的Library Path步骤:1,打开Delphi2010,打开菜单Tools->Options。 2,左侧点击Delphi Options的+号,点击Library-win32 3,在右侧框中找到Library Path,将FastReport->LibD14路径粘贴至该文本框的末尾,粘贴之前输入分号(;)。三,生成FastReport汉化文件步骤:1,运行"recompile.exe"文件,设置相应 阅读全文
posted @ 2012-03-11 12:44 许明吉博客 阅读(7183) 评论(1) 推荐(0) 编辑
摘要: http://www.cssrain.cn/http://www.uml.org.cn/http://www.htmldrive.nethttp://www.uml.org.cn/ 阅读全文
posted @ 2012-01-21 16:55 许明吉博客 阅读(262) 评论(0) 推荐(0) 编辑
摘要: http://www.hongkiat.comhttp://www.hv-designs.co.uk/2011/06/28/milk-ui-kit-freebie/免费的失量图http://www.vectorstock.com/free-vectors?order=popular国外的下载网站http://www.sharewarejunction.comhttp://www.allulook4.com/95f/KeyCreator+7+5+2.htmlhttp://usenetdownloads.net/usenet.nl/v4/register.php?file=S2V5Y3JlYXRv 阅读全文
posted @ 2012-01-16 11:46 许明吉博客 阅读(196) 评论(0) 推荐(0) 编辑