delphi2007 deki projenin delphi2010 da hata vermesi

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
kazimates
Üye
Mesajlar: 332
Kayıt: 01 Tem 2005 12:40
Konum: Kıbrıs
İletişim:

delphi2007 deki projenin delphi2010 da hata vermesi

Mesaj gönderen kazimates »

merhbalar dehi2007 de yazdığım programı delphi2010 da tekrar compile etmem gerekti ve programcompile edilirken aşağıda ki hataları vermey başladı bunun sebebi neolabilir?

Kod: Tümünü seç

Checking project dependencies...
Compiling Project1.dproj (Debug configuration)
[DCC Hint] Dusuk.pas(51): H2077 Value assigned to 'dusuksayisi' never used
[DCC Error] BuzDan.pas(489): E2251 Ambiguous overloaded call to 'Pos'
  System.pas(16695): Related method: function Pos(const WideString; const WideString): Integer;
  System.pas(18386): Related method: function Pos(const string; const string): Integer;
[DCC Warning] BuzDan.pas(489): W1058 Implicit string cast with potential data loss from 'string' to 'RawByteString'
[DCC Error] BuzDan.pas(489): E2251 Ambiguous overloaded call to 'Pos'
  System.pas(16695): Related method: function Pos(const WideString; const WideString): Integer;
  System.pas(18386): Related method: function Pos(const string; const string): Integer;
[DCC Warning] BuzDan.pas(489): W1058 Implicit string cast with potential data loss from 'WideString' to 'RawByteString'
[DCC Fatal Error] Disitelef.pas(39): F2063 Could not compile used unit 'BuzDan.pas'
birinci hatada ki kod şu şekilde
dusuksayisi:=0;

ikinci hatada ki kod
if (Pos(Column.Field.FieldName, Sort) = 1) and (Pos(' DESC', Sort)= 0)
ve hem ikinci hede ucuncu hatalarda Sort) kısmı işaret ediliyor.

dördüncü ve beşnci hatalarda aynısatırlrdaki satırda ki bu sefer ikinci sort) işaret ediliyor.
kazimates
Üye
Mesajlar: 332
Kayıt: 01 Tem 2005 12:40
Konum: Kıbrıs
İletişim:

Re: delphi2007 deki projenin delphi2010 da hata vermesi

Mesaj gönderen kazimates »

ikinci hatada ki kod

Kod: Tümünü seç

if (Pos(WideString(Column.Field.FieldName), Sort) = 1) and (Pos(Widestrin(' DESC'), Sort)= 0) 
olara kod değişecek olursaproblem çözülüyor.
Cevapla