Autor Beitrag
Seraph
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 163

Windows.:siXPack:.
Delphi7 Professional
BeitragVerfasst: Fr 07.04.06 07:52 
Hallo Leute und Freakses!

Ich habe ein paar C-Header, ich möchte diese aber zu Delphi-Header übersetzen!
(Nicht mit diesen Möchtegerntools)

Gibt es eine feste Norm, wie so eine Headerfile in Delphi aussehen muss
(z.B.: für Compiler den eine Anweisung)????

Unter C gibts da zum Beispiel sowas hier:
ausblenden C#-Quelltext
1:
2:
#define IOCTL(index) \
    CTL_CODE(FILE_DEVICE, index, METHOD_BUFFERED, FILE_READ_DATA)


Der Knackpunkt ist auch hier wieder die Syntax, wie schreibe ich das in Delphi???

1000 Dank für eine Antwort
Gruß
Seraph

Moderiert von user profile iconraziel: Titel geändert: :::::::::: entfernt.
Moderiert von user profile iconraziel: Topic aus Dateizugriff verschoben am Fr 07.04.2006 um 08:55
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Fr 07.04.06 09:00 
user profile iconSeraph hat folgendes geschrieben:
Der Knackpunkt ist auch hier wieder die Syntax, wie schreibe ich das in Delphi???

Ich kann nur raten. Aber ich gehe mal davon aus, dass CTL_CODE eine Procedure ist und die Daten dahinter Variablen.

_________________
Ein Nutzer der Ecke ;-)
Seraph Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 163

Windows.:siXPack:.
Delphi7 Professional
BeitragVerfasst: Fr 07.04.06 10:03 
Ja schon, dass stimmt!

Aber es geht mir eher darum, wie ich diese "#define NAME \" -syntax in Delphi schreibe!

Gruß
Seraph
raiguen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 374

WIN 2000prof, WIN XP prof
D7EP, MSSQL, ABSDB
BeitragVerfasst: Fr 07.04.06 11:25 
Moin :-)
OH-> Stichwort Compilerdirektiven
ausblenden Delphi-Quelltext
1:
{$DEFINE ...}					
aim65
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 312

Win 9x, Win XP
Delphi 3pro, 7PE
BeitragVerfasst: Fr 07.04.06 11:47 
Vielleicht ist das ein Link, der Dir weiterhilft:
www.drbob42.com/tools/index.htm
Guck hier unter "headconv 4.20"
Seraph Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 163

Windows.:siXPack:.
Delphi7 Professional
BeitragVerfasst: Fr 07.04.06 11:47 
So! Jetzt komm ich, der Obernooby! :P

Wenn ich eine DLL einbinde mit LoadLibary(), wie kann ich dann auf die Funktionen innerhalb der DLL zugreifen??
Wie kann ich den Source der DLL verwenden????

Sorry, aber nix weiß!

Gruß
Seraph