Home > Back-end >  Delphi 7 questions about using TArray
Delphi 7 questions about using TArray

Time:10-19

Recently, access to the Delphi program.'s colleagues to stay before.
Boss, asked me to make a change in the above. And more urgent, I am get vc + +
Delphi nor too familiar... Just before, made a small program.. Almost don't have to.

Open the project with Delphi 7. Run it again, just an error.
"Undeclare Identifier" TArray ""

The program is that
Var
AData: TArray

This looks like c + + template similar

You master, how to solve ah, surf the Internet to find the Delphi 7 information about using TArray. Very little. Almost impossible to find.

CodePudding user response:

Generics, D7 does not support, it is suggested that in D2010

CodePudding user response:

TArray Is a generic statement
Do you have a unit without should come in. D2007 previous versions should be is the official unit

CodePudding user response:

This can't be delphi7 development, because it does not support the

Delphi normal reliable generics starting from more than 2010 version, is now a xe3

Xe2 above all to unicode, so, as the case, if the original program are very strict distinction between the Char and AnsiChar, PChar and PAnsiChar xe2 above version, not try 2010 or xe

CodePudding user response:

Must use the above Delphi2010 version,

CodePudding user response:

D2009 began to join the generic support, like LSS said although less reliable at the beginning, later is no problem after update3,
  • Related