Einzelnen Beitrag anzeigen

LuCSteR

Registriert seit: 16. Sep 2005
168 Beiträge
 
#4

Re: ListBox Item(s) per ENTER mit einer Anwendung öffnen

  Alt 1. Sep 2008, 13:35
Delphi-Quellcode:
if Key=VK_RETURN then
  for i:=0 to ListBox7.Items.Count-1 do
    if ListBox7.Selected[i] then
      ShellExecute(nil, 'open', DownloadDir+ListBox7.Items[i], nil, nil, SW_SHOWNORMAL); //SW_SHOW funktioniert auch nicht :/
Diese Fehler bringt der Compiler:

Unit1.pas(763,20) Error: Identifier not found "VK_RETURN"
Unit1.pas(766,89) Error: Identifier not found "SW_SHOWNORMAL"

Warum? Habe ShellAPI in die Uses-Klausel eingebunden. Richtig oder?
  Mit Zitat antworten Zitat