Announcement

Collapse
No announcement yet.

Shell Exec. auch mit var als Pfad?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shell Exec. auch mit var als Pfad?

    Kann man bei ShellExecute auch eine variable als pfad angeben?
    z.B.
    ShellExecute(Handle, NIL, PChar('x'), '','', SW_SHOWNORMAL);
    wenn ja, wie muss ich x Deklarieren? Als String?
    If it's there and you can see it – it's REAL
    If it's there and you can't see it – it's TRANSPARENT
    If it's not there and you can see it – it's VIRTUAL
    If it's not there and you can't see it – it's GONE!

  • #2
    Hallo,

    Entweder du deklarierst x als PChar oder string. Wenn du es als string deklarierst, musst du wie in deinem Beispiel eine typumwandlung machen, nur ohne die Hochkomma

    Gruß Stefa

    Comment


    • #3
      Danke
      If it's there and you can see it – it's REAL
      If it's there and you can't see it – it's TRANSPARENT
      If it's not there and you can see it – it's VIRTUAL
      If it's not there and you can't see it – it's GONE!

      Comment

      Working...
      X