Is WideString identical to String in Delphi 2009

前端 未结 4 1142
鱼传尺愫
鱼传尺愫 2021-01-02 00:20

I\'m getting some weird behaviour recompiling some applications in 2009 that used widestrings at various points.

In a Delphi 2009 App is Widestring identical to Str

4条回答
  •  一个人的身影
    2021-01-02 00:32

    One other important thing to note is the performance difference.

    In Marco Cantu's White Paper (referred to in moodforaday's answer) says:

    "WideString was (and still is) not reference counted and is extremely poor in terms of performance and flexibility (for example, it uses the Windows global memory allocator rather than the native FastMM4)."

    Almost every upgrade guide for Delphi 2009 I've seen recommends you convert all WideStrings to Strings.

提交回复
热议问题