Autor Beitrag
sCrAPt
Gast
Erhaltene Danke: 1



BeitragVerfasst: Do 06.02.03 21:30 
Immer wenn ich ne IRC-Komponente Installiere die gut sein soll geht das nicht:
ausblenden Quelltext
1:
function  Get_Error: Error; safecall;					

Warum? Wie kann ich das beheben?


Zuletzt bearbeitet von sCrAPt am Fr 07.02.03 14:19, insgesamt 1-mal bearbeitet
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 07.02.03 08:11 
also du ruft hier ja eine dll auf soweit ich das sehe
ausblenden Quelltext
1:
safecall;					

ist dies auch an ihrem Platz und vorhanden???

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
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: Fr 07.02.03 08:51 
Hi,

soweit ich weiß, darf in einer Komponente bzw. Klasse keine Funktion vorkommen, die in einer DLL ausgelagert ist. Außer, man macht es so:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
...
public
  function GetLastError: Integer;

...

function GetLastError: Integer;
  function GetLastError_: Integer; safecall....
begin
  Result := GetLastError_;
end;


Oder irre ich etwa?

AXMD
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 07.02.03 09:13 
Versteh ich dich richtig, das man keine Function in eine .dll schreiben darf???
..... hm? also ich habe das bischer immer so gemacht
ausblenden Quelltext
1:
2:
function xxx(xxx:word):boolean;StdCall;
external 'xxx.dll';


ging bisher immer ....

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 07.02.03 09:18 
Nur innerhalb einer Komponente wohl nicht. So im Code schon - logisch.
Ist die Frage beantwortet? Das Problem gelöst?

Dann klicke hier, um das Thema entsprechend zu markieren!