Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi FindWindow unter Windows XP PRO (https://www.delphipraxis.net/61907-findwindow-unter-windows-xp-pro.html)

Karstadt 27. Jan 2006 19:26


FindWindow unter Windows XP PRO
 
Delphi-Quellcode:
program Project1;

uses
  Forms, Windows,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.res}

begin
  Application.Initialize;
  If FindWindow('TForm1', 'Form1') <> 0 Then Application.terminate;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
:wall: das programm startet nicht! Warum?

FindWindows hat ein Wer <> 0 obwhol, es kein gleiches Programm in Hintergrund gibt!

Christian Seehase 27. Jan 2006 19:42

Re: FindWindow unter Windows XP PRO
 
Moin Karstadt,

mach' mal Delphi zu bevor Du das Programm startest.
Dann sollte es gehen, denn in der IDE hast Du meist auch ein Formular Form1 vom Typ TForm1.

Karstadt 27. Jan 2006 19:57

Re: FindWindow unter Windows XP PRO
 
:oops: danke!


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:55 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz