Forum: Netzwerke
Delphi
by DGL-luke,
11. Jul 2005
DA musst du dir mein erstes bsp. noch mal ansehen ;)
shellexecute(application.handle,
'open',
PChar( extractfilepath(paramstr(0))+'1.bat'),
'-bla - foo -bar x', //das hier ist es - verständlich, oder? ;)
'',
SW_HIDE)
Forum: Netzwerke
Delphi
by DGL-luke,
10. Jul 2005
tja leddl... schlecht, wenn man nichts von PChar weiss. :mrgreen: :lol:
PChar gibt glaube ich die anfangsadresse des strings zurück, allerdings ohne den reference count zu erhöhen, was ja ideal für solche funktionsaufrufe ist.
Forum: Netzwerke
Delphi
by DGL-luke,
10. Jul 2005
also: bei literalen ist PChar nicht notwendig. nur so als statement ;)
Forum: Netzwerke
Delphi
by DGL-luke,
10. Jul 2005
shellexecute*
mal sehen:
shellexecute(application.handle,
'open',
PChar( extractfilepath(paramstr(0))+'1.bat'),
'-bla - foo -bar x',
'',
SW_HIDE)