Thema: Delphi Deprecated

Einzelnen Beitrag anzeigen

venice2
(Gast)

n/a Beiträge
 
#1

Deprecated

  Alt 12. Jun 2020, 17:10
Habe heute ein altes Projekt kompiliert und muss feststellen das viel Funktionen als veraltet aufgeführt werden.
Wo bekomme ich näherer Infos darüber was man an stelle dessen verwenden soll.
Nur ein kleiner Teil davon StrPas und andere fehlen noch.

Delphi-Quellcode:
{$IFDEF DELPHI18_UP}
  {$DEFINE WITH_VAR_TVALUEBUFFER}   //GetFieldata overloads using !var! Buffer: TValueBuffer
  {$DEFINE WITH_BUFFERS_IS_TRECBUF} //Buffers[index] is TRecBuf type NativeInt
  {$DEFINE WITH_ANSISTRINGPOS_DEPRECATED} //AnsiStringPos deprecated moved to AnsiStrings
  {$DEFINE WITH_STRLEN_DEPRECATED} //StrLen deprecated moved to AnsiStrings
  {$DEFINE WITH_TOBJECTLIST_INLINE} //TObjectList.Remove, add ... are inlined    need System.Types
  {$DEFINE WITH_ANSISTRCOMP_DEPRECATED} //AnsiStrComp is deprecated moved to AnsiStrings
  {$DEFINE WITH_ANSISTRLCOMP_DEPRECATED} //AnsiStrLComp is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRDISPOSE_DEPRECATED} //StrDispose is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRNEW_DEPRECATED} //StrNew is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRCOPY_DEPRECATED} //StrCopy is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRPCOPY_DEPRECATED} //StrPCopy is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRPLCOPY_DEPRECATED} //StrPLCopy is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRLCOPY_DEPRECATED} //StrLCopy is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRLICOPY_DEPRECATED} //StrLICopy is deprecated moved to AnsiStrings
  {$DEFINE WITH_STRLICOMP_DEPRECATED} //StrLIComp is deprecated moved to AnsiStrings
  {$DEFINE WITH_GETCALCFIELDS_TRECBUF} //GetCalcFields expected no TRecordBuffer use TRecBuf type NativeInt instead
  {$DEFINE WITH_FLOATTOTEXT_DEPRECATED} //FloatToText(PAnsi...) is deprecated moved to AnsiStrings
{$ENDIF}
was meinen die mit "moved to AnsiStrings"
Einfach nur die Unit AnsiStrings zu den Uses hinzufügen?

Geändert von venice2 (12. Jun 2020 um 17:15 Uhr)
  Mit Zitat antworten Zitat