Autor Beitrag
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mi 02.02.05 17:47 
hi leute.. ich versuche mit folgendem code die versionsnummer in einer Textdatei auf meinem server auszulesen und mit der konstatne zu vergleichen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
const
   v: String = 'v1.8.1';
{...}
        If IdHTTP1.Get('http://www.jayy.de/update/v.txt') <> v Then
        Begin
            If MessageBox(self.handle, 'Es ist eine neuere Version des RMC-Tools vorhanden! Downloaden?', 'Update', MB_YESNO) = ID_YES Then
            Begin
                ShellExecute(0, 'open', PChar(ExtractFilePath(Application.exename) + 'update/update.exe'), Nil, Nil, SW_SHOWNORMAL);
                sleep(1000);
                ende := true;
                close;
            End;
        End;

schaut euch die txt datei an, wenn ihr wollt, ihr inhalt ist v1.8.1 ... einmal hat es geklappt, nur(ich weis nicht wie warum und sonstwas, aber) damals war der inhalt der txt datei: ㅶ㠮
(sollten jetzt seltsame sonderzeichen sein) und da klappte es, es mit 18 zu vergleichen. wenn ich die datei im explorer anzeige, is alles in ordnung, und ihr inhalt stimmt... woran könnte es liegen?

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
herzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 168

WINXP pro, SUSE Linux 9.0
D7 Pers.
BeitragVerfasst: Do 03.02.05 09:38 
Klappt mit diesem Code bei mir 100 %. Hast du evtl. zwischenzeitlich was v verändert ?
JayEff Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 03.02.05 14:39 
ich weis worans lag: die textdatei war mim Windows editor erstellt. sie hatte eine größe von 10 bytes, obwohl nur 4 zeichen drin waren.. (ICH HASSE DICH, WINDOWS!:evil:) ich hab mit delphi die textdatei geöffnet und siehe: es waren seltsame leertasten hinter den buchstaben... :shock: also.. jetzt geht die sache... :roll:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.