Autor Beitrag
ski20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Di 21.08.07 14:28 
Hi All,
kann jemand hier helfen.. will das hier ...was geht

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle,nil,'C:\Windows\system32\cmd.exe',('/C net send mark-notebook Meine WunschText'),nil,1)  ;					



gegen sowas austauschen ..wegen Variablen übergabe !!

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle,nil,'C:\Windows\system32\cmd.exe',('/C net send mark-notebook )+ MeineTextString,nil,1) ;					


Mit MeineTextString als Type String bekomme ich Type String ungleich PAnsiChar.


Danke

Mark

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 21.08.07 14:31 
Dazu mussten einfach über den Typecast PChar (Zu benutzen wie ne Funktion) in nen PChar umwandeln:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle,nil,'C:\Windows\system32\cmd.exe',PChar('/C net send mark-notebook'+ MeineTextString),nil,1);					

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
ski20 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Mi 22.08.07 07:25 
Titel: Danke
Ist das geil !!!! 4 minuten und schon eine Antwort.
Vielen dank funkt. Super
Have a nice day
Mark



user profile iconjakobwenzel hat folgendes geschrieben:
Dazu mussten einfach über den Typecast PChar (Zu benutzen wie ne Funktion) in nen PChar umwandeln:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle,nil,'C:\Windows\system32\cmd.exe',PChar('/C net send mark-notebook'+ MeineTextString),nil,1);