Autor Beitrag
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 24.02.05 18:12 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
function loadedcheck(pid: integer): boolean;
var s: string;
    f: file of integer;
    str: integer;
begin
  s := getexepath;
  assignfile(f,pchar(s+'stealth_redux.ini'));
  {$i-}
  system.Reset(f);
  {$i+}
  result := false;
  closefile(f);
end;


wieso bekomme ich da immer voll den dicken fehler, selbst nen try hilft mir da nicht weiter...
Elite
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 24.02.05 18:16 
Weil AssignFile einen String und keinen PChar erwartet?
uall@ogc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 24.02.05 18:20 
ne das isses net,
die datei existiert auch nicht

aber das {$I-} sollte die fehler meldugnen abfange selbst wenn ich das mit nem try mache klappts nicht
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 24.02.05 18:21 
Sicher, dass an ExePath schon ein \ dran ist?

AXMD
uall@ogc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 24.02.05 18:21 
ja 100% nen rewrite geht

ok mein fehler war in ner dll, closfile hat gecrashed net reset(f)


Zuletzt bearbeitet von uall@ogc am Do 24.02.05 18:24, insgesamt 2-mal bearbeitet
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 24.02.05 18:22 
Dann muss es am PChar liegen. Was soll das da :gruebel:

AXMD