Pytanie : Skorupa Api problem

Cześć experts
I am using Borland Delphi 2006 dla .net.
I am działanie w okno tworzyć zastosowanie. I właśnie zaczynać using delphi i ono niezwykle udaremniać. Wyrównywać podstawowy tutorials wydawać się.

This jeden rzucać the następujący błąd message.
[Paskal Błąd] WinForm.pas (96): E2250 Tam  być żadny żadny wersja "ShellExecute" który móc dzwonić z te arguments

This być the linia kod the problemowy…
begin
ShellExecute (Rękojeść, "otwierać", "C:\WINDOWS\system32\notep ad.exe", zero, zero, SW_SHOWNORMAL);
end;

I zawierać the ShellApi w the uses sekcja the unit.

As ty móc I próbować notepad od guzik na mój forma, ale… nothing.

Thanks dla jakaś pomoc u móc offer.

chris
















Odpowiedź : Skorupa Api problem

Chris, dodawać System.Diagnostics the uses sekcja:

uses
  System.Diagnostics;

wtedy ty móc ten linia:

System.Diagnostics.Process.Start ("notepad.exe ");
Inne rozwiązania  
 
programming4us programming4us