Autor Beitrag
GuGl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Mo 10.02.03 11:31 
Hallo zusammen,

weiß jemand warum der Compiler die u.a. Zeichenfolge in Klartext (in diesem Fall "Banane") umwandelt und den dann auch so in die EXE-Datei schreibt ?

Der wird sogar angezeigt, wenn ich die EXE mit Wordpad editiere.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
begin
     Application.Initialize;
     if inputbox('Paßwort eingeben','Paßwort : ','') = #98+#97+#110+#97+#110+#101 then begin
        Application.CreateForm(TForm1, Form1);
        Application.Run;
     end
     else application.terminate;

Kann diese Umwandlung ggf abgeschaltet werden? Bin für jede Hilfe dankbar.

_________________
Gruß, GuGl
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 10.02.03 11:37 
Der Compiler wandelt das natürlich um, denn das sind zu ersetzende Zeichen für ihn. Wenn Du eine softcodet String machen willst, also einen der nicht in der EXE sichtbar ist, dann mach das mit Chr(38)+....
dann funktionierts.

Gruß
GuGl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Mo 10.02.03 13:29 
Habe ich auch schon Probiert,
hat aber den gleichen Effekt und ist in der EXE als Klartext lesbar.

_________________
Gruß, GuGl
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 10.02.03 13:49 
Hi,

mach doch einfach ein paar Konstanten und Variablen... für jedn Buchstaben eine.

so:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
const
  PA = 'A';
  PN = 'N';

var
  PB: String = 'B';

procedure CheckPW(Password: String);
const
  PE = 'E';
begin
  if Password = PB+PA+PN+PA+PN+PE then
    // bla bla :)
end;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
GuGl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Mo 10.02.03 14:23 
Besten Dank, funzt Prima.

_________________
Gruß, GuGl