Car Pay Pay Car

Onlinepaycar Pt Irselby1 Online Pay Car 记 «a 生日

Onlinepaycar Pt Irselby1 Online Pay Car

资源重复问题解:E2161 Warning: Duplicate resource: Type 24

星期四, 12月 17th, 2009

[notice:see end of the article for english version]

一般按照网上流传的方法制作UAC.RES放到DELPHI程序里面来就可以出现盾牌。但是某些DELPHI的项目在添加了UAC.RES后编译会报错,例如:

[DCC Error] E2161 Warning: Duplicate resource:  Type 24 (user-defined), ID 1; File uac.res resource kept; file Builder.RES resource discarded.

有人建议去掉{},其实这是一种很不好的做法,甚至会导致你的程序在执行时候导入资源而崩溃,并且这样会把程序的版本信息给去掉。

经过研究巴丁发现其产生原因是DELPHI自动为程序创建了一份资源,刚好和UAC.RES的作用一样,所以就造成了冲突。而这个是可以再工程设置里面设定的。

操作:Project->options->Application->Enable runtime themes,把勾勾去掉,然后再编译,即可。
 

 ———————-

Solution of [DCC Error] E2161 Warning: Duplicate resource:  Type 24 (user-defined), ID 1; File uac.res resource kept; file Builder.RES resource discarded.

Do following:

Project->options->Application->Enable runtime themes, unchecked it!

Posted in 杂记 | No Comments »

Delphi实用免费库

星期四, 12月 17th, 2009

1、FastMM
主页:> Delphi 2006 中一个重要的更新就是使用开源内存管理器 FastMM 替调了使用了 N 年的老内存

管理器。

FastMM 在外国 Delphi 社区非常有名,其主要目的就是重新实现一个高效、安全、稳定的内存

管理器(Borland 的内存管理器问题多多,如 Dll 和 Exe 间无法共享,多线程下效率底--一

些情况下甚至于低一个数量级!),在代号为 Dexter 的 Delphi 2006 没 release 之前已经听

李维大肆鼓吹说 Dexter 如何出色,还在 CSDN 上说他 Demo 证明 FastMM 在 Delphi 和 BCB

下能提高 NNN% 的效率!
相对旧内存管理器,FastMM 有诸多的优点:

a、彻底实现了 Borland 的内存管理器,可以完全取代现有的内存管理器(“取代”就是

第一个 uses FastMM4,that is all …)
b、实现了内存管理器共享机制,Exe 和 Dll 间共享内存管理器不需要任何 Dll 支持
c、集成了内存泄漏检测功能
d、充分兼容现有的代码、Delphi 旧内存管理器模式
e、为了加速 Delphi IDE(如 Delphi 5/6/7、Delphi 2005)的启动速度、管理内存占用

等,他提供了 BorlndMM.dll 的替代,直接替换 Bin 中的 Dll 即可!

2、FastCode
主页:> 国外一个非常知名的delphi项目,是一个高效的可代替delphi的rtl的函数库,里面的函数

大多都是用汇编写成的,Delphi2006中就有很多代码就是参考了fastcode(或者直接拷贝过去)


它就特点就是一个字:快!

3、VirtualTreeview
主页:> 最强大的树形控件,到底有多强,自已去体会吧!
这个控件也是Delphi2006的IDE使用的控件之一(里面的所有树形相关控件都是用的这个),

Delphi2006之所以速度快,很大程序上也有这个控件的一部分功劳!

4、graphics32
主页:> Graphics32图像控件是专门用于Windows Bitmap快速绘脊辜及函式库,能够轻易制作半透明

视觉效果,可以作出图层效果,缩放,Alpha混合,角度旋转等多种图像效果。
带有六个控件:TPaintBox32, TImage32, TBitmap32List, TRangeBar, TGaugeBar,

TImgView32.

5、GraphicEx
主页:> Delphi的图形增强控件,为Delphi增加数十种图形格式的支持

TIFF images (*.tif; *.tiff), extended base line implementation
1..16 bits per sample
indexed, grayscale, RGB(A), CMYK, L*a*b*
uncompressed, packed bits, LZW, CCITT T.4, Thunderscan, Deflate, new style JPEG
GFI fax images (*.fax), uses TTIFFGraphic to read
SGI images (*.bw, *.rgb, *.rgba, *.sgi)
1..16 bits per sample
indexed, grayscale, RGB(A)
uncompressed, RLE
Autodesk images files (*.cel; *.pic) old style only
8 bits per sample, indexed and uncompressed
Truevision images (*.tga; *.vst; *.icb; *.vda; *.win), write support included
5 and 8 bits per sample
grayscale, indexed, 15 bits RGB (555), 24 bits RGB(A)(888)
uncompressed, RLE
ZSoft Paintbrush images (*.pcx, *.pcc; *.scr)
1..8 bits per sample
grayscale, indexed, RGB
uncompressed, RLE
Kodak Photo-CD images (*.pcd)
8 bits per sample in YCbCr in any resolution (192 x 128 up to 6144 x 4096)
Portable pixel/gray map images (*.ppm, *.pgm, *.pbm)
1 and 8 bits per sample
grayscale, indexed, RGB uncompressed pOnlinepaycar Pt Irselby1 Online Pay Car 记 «a 生日k c y Online Car Pay rOnlinepaycar Pt Irselby1 Online Pay Car 记 «a 生日l i Online s s Online Car Online