| Autor |
Beitrag |
Marco D.
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 23.02.06 18:01
Hallo,
was soll ich beim Aufruf dieser Funktion für Descriptor angeben?
Delphi-Quelltext 1: 2: 3: 4: 5: 6:
| function Connect(Descriptor: PMYSQL; const Host, User, PW, DB: string; Port: Integer): PMYSQL; begin result := mysql_real_connect(Descriptor, PChar(Host), PChar(User), PChar(PW), PChar(DB), PORT, nil, 0); end; |
Link: www.michael-puff.de/...QL_mit_Delphi_01.php
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 26.02.06 10:27
Das hat sich schon erledigt.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Christian S.
      
Beiträge: 20451
Erhaltene Danke: 2264
Win 10
C# (VS 2019)
|
Verfasst: So 26.02.06 12:59
Dann schreib bitte auch, wie sich das erledigt hat, falls jemand dasselbe Problem hat.
_________________ Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 26.02.06 15:12
Oder du löscht dieses Topic einfach 
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Christian S.
      
Beiträge: 20451
Erhaltene Danke: 2264
Win 10
C# (VS 2019)
|
Verfasst: So 26.02.06 15:15
Koller hat folgendes geschrieben: | Oder du löscht dieses Topic einfach  |
Dieses Forum beruht darauf, dass man sich gegenseitig hilft. Wie egoistisch ist es da, wenn Du Dein Problem gelöst hast, die Lösung hier nicht bekannt zu geben?
_________________ Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: So 26.02.06 18:30
So geht das:
Delphi-Quelltext 1: 2: 3: 4: 5: 6: 7: 8: 9:
| var Descriptor : PMYSQL; function Connect(Descriptor: PMYSQL; const Host, User, PW, DB: string; Port: Integer): PMYSQL; begin result := mysql_real_connect(Descriptor, PChar(Host), PChar(User), PChar(PW), PChar(DB), PORT, nil, 0); end; Connect(Descriptor, Host, User, PW, DB, Port); |
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
|