Autor Beitrag
The-FoX
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 203

Win XP
D6 Pers
BeitragVerfasst: Sa 06.09.03 00:44 
Hi, ich habe eine Funktion, die sich so aufrufen lassen soll:

ausblenden Delphi-Quelltext
1:
function (DfueName:stringvar ErrorCode: integer, var Conid :cardinal): Boolean					


Also bsp:

ausblenden Delphi-Quelltext
1:
DialDFUE('1und1'00); //ich weiß nicht was ich für die nullen einsetzen soll. Es kommt nämlich folgende Fehlermeldung: Die Typen der tatsächlichen und formalen Varparameter müssen übereinstimmen ?!					


Keine Ahnung was die von mir wollen ?! Die Delphihilfe ist auch nicht wirklich eine große Hilfe.
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Sa 06.09.03 08:40 
Mache es doch so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  ErrorCode: Integer;
  Conid: Cardinal;
begin
  DialDFUE('lundl', ErrorCode, Conid);
  ...
end;


Das Problem ist, dass du 2 Var Parameter hast. Deshalb musst du auch Variablen übergeben. Wenn du 0 übergibst ist das eine literale Konstante, weshalb die Fehlermeldung kommt.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
The-FoX Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 203

Win XP
D6 Pers
BeitragVerfasst: Sa 06.09.03 23:16 
Cool, jetzt gehts endlich, danke vielmals!