Autor Beitrag
Minime
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: Di 31.10.06 15:23 
mhh ich poste das mal hier hoffe das es richtig is :D

ich hab ne kliene dll die einen string verschlüsselt und an meine hauptanwendung übergiebt und das geht auch
aber immer nach dieser operation(oder auch nach jeder stringübertragung) kommt eine exception "EInvalidPointerOperation"
debuging bringt auch keine sichtbaren ergebnisse
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 31.10.06 15:31 
Und wo ist jetzt das Problem mit der BorlandMM.dll?
Minime Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: Di 31.10.06 16:14 
lol hab gewusst das das jemand fragt :D

bei verwendung der Dll kommt es IMMER zu einer Exception, ohne nicht
warum + lösungsansatzn ^^

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
library enc_simple;
uses ShareMem;

{$R *.res}
type
  TInfo = record
    Author : string;
    Algorithm : string;
    Version : string;
    Comments : string;
    MenuName : string;
  end;

//=========================================
// Simple Encryption------------------|||||
//=========================================
function Crypt(Str : String; Key: string): String;
var
  Y, Z : Integer;
  B : Byte;
begin
  Z := 1;
  for Y := 1 to Length(Str) do
  begin
    B := (ord(Str[Y]) and $0fxor (ord(Key[Z]) and $0f);
     B := b xor 10 ;
    Str[Y] := char((ord(Str[Y]) and $f0) + B);
    Inc(Z);
    If Z > length(Key) then Z := 1;
  end;
  Result := Str;
end;
//===============================
//===============================


function Encrypt(Text,Key:string):string;
begin
  Result := crypt(Text,Key);
end;

function Decrypt(Text,Key:string):string;
begin
  Result := crypt(Text,Key);
end;

function Info():TInfo;
begin
  Result.MenuName := 'Simple Xor';
  Result.Author := 'Trilithium';
  Result.Algorithm := 'Simple Encryption Algorithm';
  Result.Version := 'v0.98 Final';
  Result.Comments := 'Fast and Simple';
end;

exports Encrypt,Decrypt,Info;

begin
end.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 31.10.06 16:31 
Ohne nicht weil wahrscheinlich Zufall. Mit weil sie nicht als erstes in der Uses-Liste der Projektdatei steht?
Minime Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32



BeitragVerfasst: Di 31.10.06 19:34 
nene alles schon übrprüft

lol jetzt ist sogar noch ein laufzeitfehler hinzugekommen ^^