Delphi2010中使用ansi编码编译程序

Delphi2009和Delphi2010中,默认的字符编码已经是unicode了,使得原本的一些控件都产生兼容性问题,如果想不修改编码就在Delphi2009和Delphi2010上编译Delphi2007的项目,可以使用 {$H+} 编译预处理,这将把字符串编码设为Ansi,而不是使用默认的Unicode。

【摘自】浅谈Delphi2009控件移植

- 阅读全文 -

Hits4Pay看电子邮件广告赚钱

image

Hits4Pay是一家老字号的阅读电子广告邮件赚钱的网站,与其他点广告赚钱不同的是你不需要每天都浏览他们的网站去看是否有广告可以看以及拿奖金,更不用跟其它会员比速度,先看见先点到广告才能赚到钱。如果有新广告Hits4Pay会email 通知你,你只要到Hits4Pay网站中阅读广告邮件就可以获得一个邮件$0.02美金的奖励。此外现在加入还有$10美金的加入奖金,另外也有二层下线制,每个下线的阅读一个广告也可为你额外带来$0.01美金的收益。Hits4Pay支援现在最通用的PayPal支付服务。

申请Hits4Pay看电子邮件广告赚钱
你可以从这里连结到Hits4Pay,在首页的你可以看见Sign Up Free的按键,按下它就可以带引你到申请页。首先你必需认证你的email,在Type in your e-mail here字段中填上你的正确e-mail地地,然后按下Verify my e-mail address,他们就会寄一封认证信到你的电子邮件信箱中,只要点击邮件中的超级链接就可以完成认证和继续下一个申请步骤。现在加入还有$10美金的加入奖金。

image

- 阅读全文 -

SQLite Wrapper for Delphi

 

  • Aducom's SQLite: Open source (NewBSD) Delphi (4..2007) C++ (BCB5, 6, 2007) and 2009/2010 components for SQLite V2.8.x and V3.x.x. (like TASQLiteDB, TASQLiteQuery, TASQLiteTable, TASQLiteUpdateSQL and others). No need for the BDE but Delphi standard edition is not supported. Support for static linking (no dll needed), utf-8, utf-16 and unidirectonal dataset. (updated 1 dec 2009)
  • RemObjects AnyDAC: High-speed, universal data access engine for SQLite, Firebird, MySQL, MS SQL Server, Oracle, PostgreSQL, Interbase, MS Access, IBM DB2, Sybase ASA, DbExpress, ODBC, that simplifies the task of building CodeGear Delphi, C++Builder and Free Pascal Compiler database applications. (commercial)
  • Devart Universal Data Access Components (UniDAC) - a library of nonvisual cross-database data access components for Delphi, Delphi for .NET, C++Builder, and FreePascal. The list of supported databases includes Oracle, Microsoft SQL Server, MySQL, InterBase, Firebird, PostgreSQL, and SQLite.
  • ZeosLIB: The ZeosLib is a set of database components for MySQL, PostgreSQL, Interbase, Firebird, MS SQL, Sybase, Oracle, DB/2, SQLite (2.8.x & 3.x - in cvs) for Delphi, Kylix, C++ Builder, Lazarus
  • DISQLite3: The fully embedded, no-DLL SQLite3 solution for Delphi (D4, D5, D6, D7, D2005, D2006, D2007, D2009) including FTS1, FTS2, FTS3, R-Tree, and encryption. DISQLite3 compiles with Delphi standard / personal and does NOT require sqlite3.dll. It provides the complete SQLite3 API, is regularly updated, very small, well documented, tightly integrated, and carefully optimized. As a result, DISQLite3 outperforms sqlite3.dll up to 50% for common operations. Free personal edition.
  • Fast and lean wrappers, browser, date/time and soundEx functions http://www.it77.de/sqlite/sqlite.htm ("Last update 28.05.2004")
  • Simple SQLite 3.0 wrapper, no TDataset or databinding, but fast and easy to use. Free for any purpose. Uses external sqlite3.dll for easy updating. Supports Delphi 2009. http://www.itwriting.com/blog/?page_id=659. Last Update 16 October 2008.
  • Delphi class for SQLite. http://www.torry.net/db/direct/db_directsql/tsqlite.zip (As of 30 April 2007, 'Error 404. Missing File.')
  • LibSQL - Delphi/Kylix/Freepascal interface for SQLite, MySQL and ODBC32. http://sourceforge.net/projects/libsql
  • Dataset descendant for SQLite: http://sourceforge.net/projects/sqlite4delphi (** dead project **)
  • SQLitePass library : SQLite Pass is a simple set of components designed for Lazarus-fpc and Delphi, to give access to SQLite databases. This project is open source, released under LGPL license. Those libraries and components are free.SQLite Download : http://source.online.free.fr
  • SqliteWrap Simple Sqlite3 wrapper based on work of Tim Anderson. It have cleaned code and some additional features. http://www.ararat.cz/doku.php/en:sqlitewrap
  • ___________________

    [From] SQLite Wiki

    - 阅读全文 -

    WordPress 的电子商务插件

    在 WordPress 博客中开店,以下产品适用于在你的 WordPress 博客中开一个小店。

    WordPress e-Commerce plugin

     

    wordpress e-commerce

    WordPress 下最著名的电子商务插件,和 WordPress 完美结合。


    eShop

    monochrome screenshot

    WordPress 下的电子商务插件,包括众多有趣功能,比如统计,订单处理,可定制的邮件模板。

    - 阅读全文 -

    lazarus 使用Delphi的dll导出类的问题

    Delphi的DLL导出类的方法,无外乎就是利用TClass的特性,就是,定义要导出类的Class类,即比如说,要导出的类是TMyObject,那么就定义

    TMyObjectClass=class of TMyObject

    在导出函数里面,使用TMyObjectClass变量,可以在参数里面使用var或者直接返回。

    类似于

    function GetMyObject(var MyClass:TMyObjectClass):Boolean;stdcall;

    或者

    function GetMyObject:TMyObjectClass;stdcall;

    在Lazarus里面,声明函数为

    type
     TGetMyClass = function(var MyClass:TMyObjectClass):Boolean ; stdcall; 

    使用方法

    - 阅读全文 -

    6分钟8法则塑造优秀程序员-程序员修炼之道

    还记得那个叫做 Justice Gray 的人么?他曾经试图在六个月的时间里面成为更好的程序员,这种做法似乎成为了一种众人追捧的时尚

    然而很长一段时间过去之后,其中的大部分人并没有如愿以偿的成为好的程序员。

    这里提供给大家一个简单的解决方案,有一些方法可以让你在六分钟之内成为更优秀的程序员。

    你有六分钟的闲暇时光,对么?

    我们一起来吧!

    1. 使用更大的显示字体

    这个办法看上去非常简单,但是的确很有效果。

    打开你最喜欢的那个编程工具,将代码编辑器中的字体调大。我把 10pt 的代码显示字体增大到 14pt,这样一来,你的屏幕上一次只能显示出少量的代码。

    结果:你被迫去写一些更为短小精炼的函数,这无疑是一个好的趋势。

    Scott Hanselman 也推崇这样的做法)

    2. 让代码中的硬编码字符串部分显示变得刺眼

    我是从 Joe Cooney 那里学到这种办法。

    在你最熟悉的那个编程工具中将代码编辑器中的字符串设置为更加显眼的格式——比如,红色字符黄色背景。让那些字符串显得非常丑陋、刺眼。这将使你在代码中下意识的少写一些硬编码字符串,并且时刻注意代码中嵌入的字符串。

    3. 找出一个“模糊”的关键字,通过学习熟练掌握

    你是否明白 "yield" 关键字的作用? 还有什么关键字是你从来没有使用过的么?

    编程语言中每一个关键字都有其特殊的用途。学习并掌握这些“神秘”的陌生关键字可以使你的编程能力变得异常强大。

    这里有一些 .NET 平台不同语言的关键字列表: C#, VB.net, F#.

    - 阅读全文 -

    TopCoder 插件推荐 - KawigiEdit

    topcoder的一个插件 KawigiEdit,可以自动生成代码框架,包括类框架,函数框架和测试框架等。

    安装:

    1.下载最新的KawigiEdit jar到本地计算机上

    2.启动topcoder Competition Arena,并登录进去

    3.选择"Options" - "Editor" - "Add"

    4.“Name”,填"KawigiEdit" 或者其他你喜欢的名字

    5."EntryPoint", 填 "kawigi.KawigiEdit"

    6."ClassPath", 点击 "Browse" 选择KawigiEdit.jar的本地路径,点OK。

    7.选择default,save 退出。

    使用:

    选择一个题目,打开,就可以看到:

    - 阅读全文 -

    使用插件去除gmail侧栏广告

    使用gmail的人,应该都可以看到,gmail也是挂了Google自己的adsense广告的,如下图,使用后,如右图

    image image

    如果是使用firefox的,则有福了,插件Webmail Ad Blocker就是用来去除web邮件界面的广告链接的,支持gmail,hotmail,和yahoo的邮件。

    其中,gmail的设置选项丰富,可以设置顶栏,左栏,导航栏,右栏的显示选项。可以除去聊天,邀请,甚至是底下的版权说明。

    image

    相对的,hotmail和yahoo mail的选项就没有了,就一个去除广告的。

    【From】Two Simple Yet Useful Firefox Add-Ons You Should Have

    - 阅读全文 -

    热门文章

    最新文章

    最近回复

    • wfzlxvvgte: 你的文章让我感受到了不一样的风景,谢谢分享。 http://ww...
    • sfiutfecff: 你的文章内容非常用心,让人感动。 http://www.55ba...
    • dyqoaaqpdc: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
    • vrfedcneqp: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
    • wmhoubuazg: 你的文章内容非常用心,让人感动。 http://www.55ba...
    • khhhttrppu: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
    • atjzyxiutr: 你的文章内容非常用心,让人感动。 http://www.55ba...
    • dlamzmkwwi: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
    • predcxvhsz: 《蛋黄人》国产剧高清在线免费观看:https://www.jgz...
    • qmffcradmz: 《逃狱者》剧情片高清在线免费观看:https://www.jgz...

    分类

    标签

    其它