Registriert seit: 6. Jan 2005
Ort: Lübbecke
575 Beiträge
Turbo C++
|
Re: Funktionen direkt einbinden
18. Mai 2005, 20:48
is jetz nur n Beispiel !!
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
function ShellExecute(
hwnd: HWND;
lpOperation,
lpFile,
lpParameters,
lpDirectory: PChar;
nShowCmd: Integer
): HWND; stdcall;
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function ShellExecute: HWND; external ' shell32.dll' name ' ShellExecute';
procedure TForm1.FormCreate(Sender: TObject);
begin
ShellExecute(Self.Handle,' open',' http://www.google.de',0,0,SW_SHOWNORMAL);
end;
end.
[Fehler] Unit1.pas(13): E2065 Ungenügende Forward- oder External-Deklaration: 'TForm1.ShellExecute'
Chuck Norris has counted to infinity ... twice!
|
|
Zitat
|