另外,在D6上编制的程序在D5上运行是否能行?谢谢!
解决方案 »
- UDPCLIENT和UDPSERVER求救,即任意两台机子间的发送信息
- Thumb.db文件处理的问题
- 学习、交流ERP/MRP经验群 (16301324)
- 在线等待---BORLAND中的GDB数据库文件用户名为SYSDBA,怎么一直打不开?
- 怎样自动向别的正在运行的程序中自动输入信息及点按钮等操作?
- 有人说,Delphi程序员不值钱,大家怎么想?是这样的吗?
- 谁有鼠标资源文件,帮帮忙
- Hook Socket的RecvFrom问题
- 五角星是多少专家分阿?
- 那位大哥有在delphi中关于outlook编程的书籍或电子书籍,资料?
- 快来帮助帮助我啊!解决者另给200分
- 请教:光盘上的数据怎么搜索。
Although compatibility between Delphi 5 and 6 is quite good, there are a few minor issues you
should be aware of as you make the move.
Writable Typed Constants
The default state of the $J compiler switch (also known as $WRITEABLECONST) is now off,
where it was on in previous versions. This means that attempts to assign to typed constants will
raise a compiler error unless you explicitly enable this behavior using $J+.
Cardinal Unary Negation
Prior to Delphi 6, Delphi used 32-bit arithmetic to handle unary negation of Cardinal type
numbers. This could lead to unexpected results. Consider the following bit of code:
var
c: Cardinal;
i: Int64;
begin
c := 4294967294;
i := -c;
WriteLn(i);
end;
In Delphi 5, the value of i displayed would be 2. Although this behavior is incorrect, you might
have code that relies on this behavior. If so, you should know that Delphi 6 has corrected this
issue by promoting the Cardinal to an Int64 prior to performing the negation. The final value of
i displayed in Delphi 6 is 4294967294.