Autor Beitrag
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Fr 16.09.05 08:28 
Hi, ich hatte zuerst die PChar Parameter an ShellExecute mit @AppName übergeben aber das hat nicht geklappt!
Dann habe ich mit PChar(AppName) übergeben dann klappte es! Warum?


Zuletzt bearbeitet von JRegier am Fr 16.09.05 08:56, insgesamt 1-mal bearbeitet
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 16.09.05 08:29 
Meine Glaskugel meldet: "Could not identify type of 'Appname'. Guessing String."

AXMD
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Fr 16.09.05 08:56 
user profile iconAXMD hat folgendes geschrieben:
Meine Glaskugel meldet: "Could not identify type of 'Appname'. Guessing String."

AXMD


Wieso ist meine Frage nicht verständlich?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 16.09.05 09:00 
Steht doch in meinem Post... woher soll ich wissen, welchen Typ Appname hat? Kann String sein, kann Array of Char sein, kann ShortString sein, kann AnsiChar sein... :roll:

AXMD
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 16.09.05 09:58 
Titel: Re: ShellExecute geht nicht @AppName anstatt PChar(AppName)
user profile iconJRegier hat folgendes geschrieben:
Hi, ich hatte zuerst die PChar Parameter an ShellExecute mit @AppName übergeben aber das hat nicht geklappt!
Dann habe ich mit PChar(AppName) übergeben dann klappte es! Warum?

mein Hirn meldet: benutze @AppName[1] dann klappts

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
JRegier Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Fr 16.09.05 10:11 
user profile iconAXMD hat folgendes geschrieben:

Meine Glaskugel meldet:
AXMD


user profile iconretnyg hat folgendes geschrieben:

mein Hirn meldet:


Was ist besser? :mrgreen: