Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   unbekannte Form in Programm mit externer DLL (https://www.delphipraxis.net/193219-unbekannte-form-programm-mit-externer-dll.html)

Fellmer 6. Jul 2017 09:54

unbekannte Form in Programm mit externer DLL
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo Delphianer,

ich habe ein Anwendung programmiert, die auf eine externe DLL (Crystal Reports) zugreift.
Beim Start sehe ich außer meiner programmierten Form noch ein weiteres, leeres Fenster
(Bild). Hat jemand eine Idee woher das Fenster kommt und wie ich es weg bekomme?

Schon mal vielen Dank.

Der schöne Günther 6. Jul 2017 10:05

AW: unbekannte Form in Programm mit externer DLL
 
Kannst du nicht nachvollziehen (notfalls mit Debugger) wann das Fenster auftaucht? Nach dem ersten Einladen der DLL? Nach einem bestimmten Aufruf, wenn ja, welchem?

Ich kenne Crystal Reports nicht, kannst du, lizenzrechtlich, die DLL hier anhängen damit man das notfalls selbst nachstellen kann?

TiGü 6. Jul 2017 10:15

AW: unbekannte Form in Programm mit externer DLL
 
Bist du sicher, das nicht irgendwo in deinem Quelltext das Programm ExtRptDruck.exe aufgerufen wird?

jaenicke 6. Jul 2017 10:21

AW: unbekannte Form in Programm mit externer DLL
 
Sieht so aus als hättest du eine Kommandozeilenanwendung erstellt. Das ist das Kommandozeilenfenster, zumindest siehst es sehr danach aus.

Fellmer 7. Jul 2017 08:46

AW: unbekannte Form in Programm mit externer DLL
 
Liste der Anhänge anzeigen (Anzahl: 1)
Vielen Dank für Eure Hilfe, leider ist noch keine Lösung dabei.

@Günther: Wenn ich mit F8 oder F7 das Programm starte,
stehe ich am 1. begin und das Fenster ist schon da. (Bild Anlage).
Die DLL ist die crpe32.dll aus dem kostenlosen Crystal-Reports-Paket
für Visual Studio (SAP).

@TiGü: Das Programm selbst heißt ExtRptDruck.

@jaenicke: Das Programm ist eine VCL-Forms, als Konsolenanwendung
müsste doch {$APPTYPE CONSOLE} hinter program stehen ?

TiGü 7. Jul 2017 09:48

AW: unbekannte Form in Programm mit externer DLL
 
Geh mal in die Projektoptionen -> Delphi Compiler -> Linking (Linker) und nehme den Haken bei Generate console application (Generiere Konsolenapplikation) raus.

Fellmer 7. Jul 2017 10:16

AW: unbekannte Form in Programm mit externer DLL
 
Wow, das wars.

Vielen Dank !


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:22 Uhr.

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