在Delphi中使用NI的GPIB卡

一、准备工作

1. 安装硬件

安装PCI板到主板,启动机器。

2. 安装驱动

安装ni488225.exe,虽然开发环境不需要安装GPIB卡,但是程序运行时,还是需要相应的驱动dll文件,所以还是要安装,其中的nispy和communicator是很好的辅助工具。

 

二、编程接口

1. Delphi接口

Language Interface: 32-bit Borland Delph下载示例工程(包含接口单元),其中的dpib32单元就是ni4882的接口单元。

使用方法:

添加以下到uses当中即可。

Uses DPIB32;

- 阅读全文 -

Good Tools for Delphi Developers

 AQTime
A great profiling tool for multiple development tools including Delphi. It's written in Delphi (or C++Builder) too.

Beyond Compare
A great comparison tool, which is also written in Delphi!

ModelMaker Code Explorer
Powerful IDE tool, which replaces the standard CodeExplorer

cnwizards
It's a free plug-in tools set used in Delphi/C++Builder. See article for details.

Command Prompt Here
Adds a Windows context menu item to start a command prompt in current directory of Windows Explorer, Total Commander etc. Windows Vista already contains a "Open Command Window Here" function. In the Vista Explorer holding Shift while right-clicking a folder in the listview on the right will add this command to the popup menu.

Copernic Desktop Search
Looking for an excellent free desktop search tool that handles Delphi code out-of-the-box? This tool is actually written in Delphi as well and once you start using it you'll wonder how you lived without it. Yahoo Desktop Search is its closest competitor in terms of functionality and this search tool has one feature that YDS lacks: buttons to search for the next instance of a keyword in a file (in the preview window).

- 阅读全文 -

[免费域名] cydots.com 免费二级域名注册

除了co.cc

另一个免费二级域名

http://www.Your-Name.net.ms
http://www.Your-Name.us.ms
http://www.Your-Name.info.ms

and much more!
Register your own domain now! Absolutely free of charge!
The better your domain is, the better your site can be found!

- 阅读全文 -

Freeware Top 20 from freewaregenius.com

My TOP 20 freeware titles featured on Freewaregenius.
Last Updated: Mar 19, 2007

1.
Launchy; Once I got used to this one I began to wonder how I ever managed without it.

2.
Dexpot: How would you like a ‘tabbed desktop’ where each ‘tab’ displays its own files, programs, and icons or even its own wallpaper and display resolution. That’s pretty much the idea behind virtual desktops, and Dexpot is the best freeware virtual desktop program around. 

3.
Spyware Terminator: Has saved my behind so many times. Because I test a lot of software, I invariably let in all sorts malware and spyware, and Spyware Terminator has been extremely effective in getting rid of it. It does a fast scan which I advise you to perform daily. 

4.
AVG Free Antivirus: Love it. I recommend it to everyone who complains of their antivirus software (4 out of every 5 people, it seems), and they always come back to thank me. 

- 阅读全文 -

用TlistView 显示TIdFtp 目录列表

在使用idftp组件的时候,目录列表的显示,是个比较大的问题,在indy9的demo中,使用的是headercontrol+listbox,然后处理listbox的drawitem事件,看起来,也不简单。

由于indy10的demo少得可怜,特说明如下:其中,indy10,listview使用的是raize component 5的控件,跟标准控件可能有部分差异。

方法:

首先,在连接上服务器后,调用idftp的list函数,获取文件列表

其中,list的函数,

procedure List( ADest: TIdStrings, const ASpecifier: string = '', ADetails: Boolean = True ); overload;

可以根据简单的表达式过滤,如下,就只显示出zip文件,AFiles存储了文件列表

AFiles := TIdStringList.Create;
AFtp.List(AFiles, '*.zip', True);
if AFtp.DirectoryListing.Count <> 0 then
begin
   FillDirListView(AFtp.DirectoryListing)
end;

其实,idftp的ListResult属性也保存了相应的列表,完全可以忽略list函数中的该参数

- 阅读全文 -

利用Indy的TIdFtp控件实现FTP协议[转]

现在很多应用都需要上传与下载大型文件,通过HTTP方式上传大文件有一定的局限性。幸好FTP作为一个非常老而且非常成熟的协议可以高效稳定地完 成大文件的上传下载,并且可以完美地实现续传。就拿我写的电影服务器管理端程序来说,各种方案比较后,发现使用FTP可以完美地实现要求。但是要通过 WinSocket库实现FTP比较麻烦,幸好有Indy--一个包装了大多数网络协议的组件包。

通过Indy,程序设计人员可以通过阻塞方式进行编程,可以抛开蹩脚的Winsocket异步模式,采用与Unix系统上等同的阻塞编程模式进行。这样,程序员就可以很好的处理程序的运行流程。 下面,我们进入到Indy的TIdFtp世界。

1.控件的说明

使用Indy 9中的TIdFtp控件可以实现通过FTP方式进行文件的上传与下载。

2.控件的具体使用

(1)控件属性设置

默认属性即可,与服务器连接直接相关的属性如主机名与用户等在建立连接时进行设定。需要设定的是RecvBufferSize和SendBufferSize两属性的值。另外需要根据要传输的文件类型指定TransferType属性,而其他属性按默认值设定即可。

RecvBufferSize说明(默认值为8192字节):该属性为整型变量,用于指定连接所用的接受缓冲区大小。

SendBufferSize说明(默认值为32768字节):该属性也为整型变量,用于指定连接所用的发送缓冲区的最大值。该属性在 WriteStream方法中时,可用于TStream指定要发送内容的块数。如果要发送的内容大于本属性值,则发送内容被分为多个块发送。

TransferType说明(默认值为ftBinary):该属性为TIdFTPTransferType型变量。用于指定传输内容是二进制 文件(ftBinary )还是ASCII文件(ftASCII)。应用程序需要使用二进制方式传输可执行文件、压缩文件和多媒体文件等;而使用ASCII方式传输文本或超文本等 文本型数据。

- 阅读全文 -

Google Calendar与Outlook同步

方法1:Google Calendar Sync

Google推出了Google Calendar和Outlook的同步交互工具,简称 .

下载安装Google Calendar Sync 
安装完毕后,出现以下画面:

calendar_89955a_en

同步操作:
填入Google Account 用户名/密码
同步选项有1.双向 2.Google Calendar -> Outlook 3. Outlook -> Google Calendar 三种
默认同步时间为120分钟,可手动调整

注意:Google Calendar Sync只能对于Google Calendar上设置为Primary的Calendar进行同步,Multiple Calendars 同步现在并无此功能,可能会在之后版本中逐步改进吧。

可惜,不支持win2003

 

方法2:gSyncit(需要跨墙)

以前好像是免费,现在Only $9.99!

FEATURES:

  • Synchronize Gmail & Outlook contacts (including photos and groups).

  • Synchronize multiple Google & Outlook calendars.

  • Advanced calendar and contact sync options.

  • Synchronize contacts and calendar events using Outlook categories.

  • Automatically matches duplicate entries to reduce duplicate entries.

安装后,有个工具栏,可自动同步

参考:gSyncit:让 Outlook 跟 Google calendar 同步【煎蛋】

image

破解下载:

http://3ddown.com/soft/32214.htm

- 阅读全文 -

免费delphi组件收集

http://www.jrsoftware.org

Tb97 最有名的工具条(ToolBar)控件库,仿Office97,如TDock97,TToolBar97,TEdit97,TToolWindow97等.

http://www.fltvu.com/jiaocheng/chenxu1/DELPHI/vcl/index.htm

http://www.delphiarea.com/products/

http://neftali.clubdelphi.com/delphi_componentes.html

http://jvcl.sourceforge.net

http://www.tntware.com/delphicontrols/

http://www.afterwarp.net/forum/

http://www.progdigy.com/modules.php?name=DSPack

http://www.gondsoft.com/softinfo.asp?softID=15

http://www.cnpack.org/index.php?lang=zh-cn

?http://www.gexperts.org/

http://fastcode.sourceforge.net/

http://www.fastcodeproject.org/

http://andy.jgknet.de/dspeedup/

http://www.thany.org/article/32/PngComponents

http://www.cromosoft.com/spp/?dir=snoop_analizer

http://delphi.about.com/
http://www.appcontrols.com/
http://basic-ide.sourceforge.net/
http://www.djpate.freeserve.co.uk/Index.htm
http://www.delphibasics.co.uk/
http://fundementals.sourceforge.net/index.html
http://www.angelfire.com/hi5/delphizeus/
http://www.delphi3000.com/
http://www.delphi32.com/
http://www.delphicity.net/catalogue/
http://www.delphisource.com/
http://www.euromind.com/iedelphi/

- 阅读全文 -

热门文章

最新文章

最近回复

  • 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...

分类

标签

其它