Autor Beitrag
hjm
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 26.09.07 11:21 
Hallo zusammen,

habe ein Demo-Prg bekommen, welches ich nun mit D5 versuche zum laufen zu bringen.

1. Hürde: function GetActDevices(pActDevices: PLongword): Curr_STATUS;

da meckert der Compiler das PLongword an.

Gibt es diesen Typen in späteren Delphi-Versionen und kann ich diesen in D5 nachbilden?

Für kurze Hilfe wäre ich dankbar.

Grüße
Hans-Josef
oldmax
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 380


D3 Prof, D4 Prof
BeitragVerfasst: Mi 26.09.07 12:07 
Hi
Soweit ich weiß, sind P-Typen Zeigertypen. Daher liegt es nahe, folgendes zu probieren:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Type

  .....
  PLongWord =^Longword;
  ...


zumindest meckert er nicht über den Syntax.
Gruß oldmax

_________________
Zier dich nich so, ich krieg dich schon....
Horst_H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1654
Erhaltene Danke: 244

WIN10,PuppyLinux
FreePascal,Lazarus
BeitragVerfasst: Mi 26.09.07 12:10 
Hallo,

Longwod ist in Delphi doch Cardinal.
dann ist
ausblenden Delphi-Quelltext
1:
2:
type 
  pLongWord = ^Cardinal;


Gruß Horst
Upps zu spät.
hjm Threadstarter
Hält's aus hier
Beiträge: 4



BeitragVerfasst: Mi 26.09.07 12:25 
Hallo,

danke Ihr beiden. Hatte ich auch schon probiert, wenn Ihr es bestätigt kann's ja nur richtig sein.

Wobei Longword und Cardinal doch eigentlich gleich sind.

Danke für die prompte Unterstützung.

Grüße
Hans-Josef