摘要:
『 xvid 2-pass参数设定 』 ---- 作者:yanik......
摘要:
通过代码优化,可以提高代码的执行效率,从而提升程序的品质。因而优化代码是程序员提高自身水平,提高技能的一个很重要途径。不同的代码有不同的分析方法,有不同的优化方法,而这全凭程序员的经验积累和自身水平。在公司里我既担任项目经理,也担任系统分析员,因而经常需要帮助程序员优化代码,因而在工作中积累了一些经验。为了将这些经验介绍给大家,我特意找了公司项目中的一个很典型的例子来做分析,希望大家有所收益。
......
老友归来--delphi2005试用手记1
序
【程序编程相关:
用Delphi在2000和XP/2003】
delphi出到8时,我曾安装过.当时第一感觉是失望,因为熟悉的vcl视觉不见了;再一个感觉是陌生,因为delphi改动了它的代码,我们再要写东西就得遵循ms的.net命名空间做事.更重要的是,我对使用delphi做b/s开发没有信心.好不爽了一阵子后,我转向了java平台. 【推荐阅读:
关于exe文件传递参数方法】
【扩展信息:
关于Delphi2005的安装问题】
但后来,我看到asp.net真的非常好,而且delphi也可以实现它,这让我有种想回见老友的冲动.但当时没时间学,所以还不太懂.我对intraweb与asp.net两种实现都很有兴趣,很想试试.在后来,c# builder1.0的试用让我对borland多少有了点好感,但还是觉得它是跟屁虫,已经没有ms抗衡的力量了.这让我想起了加菲猫的一句话,如果打不过你的敌人,最好的办法就是加入他们.
今天,我对delphi有了另一种态度.不再苛刻地要求它就是最好最快的,而是希望自己在b/s也能用得上delphi,并觉得还好用,这就足够了.至于它外观与空间的变化,在delphi8后,我已开始接受,毕竟delphi不走.net就没什么路可走了.
当我意外地得到borland寄来的delphi2005试用版时,我就想得到了一款正在流行的游戏一样,非常想试玩一下.可是,borland的注册太没有“中国特色”了,害得我跑到网上弄了个注册机.不做d版用户还不太习惯.
(一)hello world.
delphi2005是个集成环境,包括了delphi.c#,好像还可以使用vb.net,但这不是常规菜单里的内容.我感觉borland对此款软件的命名有问题,应该叫borland.net2005才对,不然用delphi开发c#,听起来有点搞笑.
先来用delphi写个hello world吧.在2005里,开发delphi有三种不同的途径,自然应用环境也不同.分别是:
1 vclforms application for .net
2 windowsforms application for .net
3 vclforms application for win32.
下面是三个方式下的hello world.
1 vclforms application for .net
单元代码:
unit unit1;
interface
uses
windows, messages, sysutils, variants, classes, graphics, controls, forms,
dialogs, stdctrls;
type
tform1 = class(tform)
button1: tbutton;
edit1: tedit;
procedure button1click(sender: tobject);
private
{ private declarations }
public
{ public declarations }
end;
var
form1: tform1;
implementation
{$r *.dfm}
procedure tform1.button1click(sender: tobject);
begin
edit1.text :=hello world.;
end;
end.
窗体代码:
object form1: tform1
left = 0
top = 0
width = 281
height = 138
caption = form1
color = clbtnface
font.charset = default_charset
font.color = clwindowtext
font.height = -11
font.name = tahoma
font.style = []
oldcreateorder = false
pixelsperinch = 96
textheight = 13
object button1: tbutton
left = 88
top = 56
width = 75
height = 25
caption = button1
taborder = 0
onclick = button1click
end
object edit1: tedit
left = 8
top = 8
width = 249
height = 21
taborder = 1
end
end ...
下一页 摘要:
delphi如何调用sql存储过程,并获取结果 adostoredproc1.close; adostoredproc1.procedurename:=sp_thchl; adostoredproc1.parameters.clear; adostoredproc1.parameters.createparameter(out,ftinteger,pdoutput,1,1); adostored......