Autor Beitrag
CASS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 19.11.05 01:10 
Hallo Leute,

Hoffe ich bin hier richtig...

Ich würde gerne folgendes realisieren:
Exe-Datei -> MDIMainForm
DLL-Dateien -> MDIChildForms (mehrere)
DLL-Datei -> DataModul

Besteht eine Möglichkeit, die Formulare aus den DLL´s so zu laden, das ich Sie wie normale Formulare verwenden kann? Ebenso das Datamodul, da ich ja von den MDIChilds auf das DataModul zugreifen können muss. Ich hab was von Packages und .bpl Dateien gelesen,
allerdings hab ich da keine Ahnung davon.

Wie würde ich am besten so etwas realisieren?

Danke für eure Ideen ...

Grüße Benny
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Sa 19.11.05 01:55 
user profile iconCASS hat folgendes geschrieben:
...Besteht eine Möglichkeit, die Formulare aus den DLL´s so zu laden, das ich Sie wie normale Formulare verwenden kann?...


Gegenfrage : welchen Vorteil hat der DLL - Umweg ? Nutze TForms und fertig.

_________________
Gruß
Hansa
CASS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 19.11.05 02:13 
ich würde die komplette software gerne Modular aufbauen.
Ich mach z. B. einen Kundenverwaltungs-Formular und ein Lieferantenverwaltungs-Formular, usw.

Ich kann dann das gleiche Programm mit mehreren Optionen ausliefern ...
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Sa 19.11.05 14:14 
Dann ist es ja eben nicht mehr das gleiche Programm. Und was ist, wenn du die falsche DLL erwischst und auslieferst ? ES ist üblich solche Module ungefähr so zu behandeln :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Program blubb;

(*$DEFINE HatLiefForm*)

uses 
...
(*$IFDEF HatLiefForm*)
  LiefForm,
(*$ENDIF*)
...

_________________
Gruß
Hansa
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 19.11.05 14:25 
Wenn Du deine Formulare schon in DLLs auslagern musst, würd ich Dir die Verwendung von Packages empfehlen. Dann sparst Du Dir einige Probleme mit dem Speichermanager von Delphi ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
CASS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 160

WIN XP
D7 Enterprise
BeitragVerfasst: Sa 19.11.05 14:56 
Hab auch schon gehört, dass das einfacher ist, aber wie mach ich das? Hat wer nen link zu einem Tutorial oder sowas? Oder könnt ihr mir das erklären?

Gruß & Danke an alle!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 19.11.05 15:16 
Ich hab mal was angehängt. Originale Quelle weiß ich jetzt nicht ausm Kopf, könnte aber sogar ausm DF gewesen sein...
Einloggen, um Attachments anzusehen!
_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Jan_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Fr 25.11.05 09:53 
Echt nützlich das Beispiel, da lässt sich ein schönes System draus Basteln, danke für die bereitstellung des Beispiels.