Autor Beitrag
schitho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 288

XP Home SP2
D2005 Prof
BeitragVerfasst: Di 23.08.05 22:08 
Ah! Du hast den Doppelpunkt nach http vergessen.

Das ist die richtige Adresse:
delphitutorials.luckie-online.de

Gruß
Thomas

_________________
(Sorry! Leider ewiger Delphi-Neuling)
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 23.08.05 22:11 

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 23.08.05 22:12 
doppelpost...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 24.08.05 00:24 
user profile iconschitho hat folgendes geschrieben:
user profile iconLuckie hat folgendes geschrieben:
Hier gibt es ein Threading Tutorial: http//delphitutorials.luckie-online.de


Wenn ich Deinen Link verwende, komm ich immer auf www.spiegel.de/ :cry:

Ihc habe in der Url den Doppelpunkt vergessen, aber wuie du da auf der Seite vom Spiegel landest, ist mir ein Rätsel.
jjturbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Mi 24.08.05 12:00 
Der direkte Link:
www.luckie-online.de...er/Delphi/Tutorials/
Lohnt sich wirklich zu lesen.

Gruß jjturbo

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Mi 24.08.05 12:18 
user profile iconschitho hat folgendes geschrieben:

Wie muss ich CreateThread ändern, damit ich einen oder mehrere Parameter übergeben kann?

createthread kann man als 4. parameter einen pointer übergeben
man kann den zum beispiel auf einen record zeigen lassen, so kann man dann mehrere parameter in dem einen pointer integrieren. für einen wert gehts dann so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure threadproc(x:pint64); stdcall; // stdcall nicht vergessen damit der parameter gepusht wird
begin
   DllResult := schleife(x^);
end;

procedure TForm1.Button1Click(Sender: TObject);
var tid: cardinal;
    x:int64;
begin
  Timer1.Enabled:=true;
  button1.enabled := false;
  x := 2000000000;
  CreateThread(nil,0,@threadproc,@x,0,tid);
end;


bei der dll:
ausblenden Delphi-Quelltext
1:
function Schleife(cnt : int64):boolean stdcall;					

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...