Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mi 09.03.05 10:30 
Hallo,

hab in mein Programm eine Unit test eingebunden (Datei -> Neu -> Unit und diese unter test.pas abgespeichert)...

Problem:
beim kompilieren will er nun auch noch die Datei test.dfm...

frage:
kann ich eine unit nicht einfach ohne ne dazugehörige form einbinden???

wenn ja, dann wie???

danke
christoph


Moderiert von user profile iconGausi: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am Mi 09.03.2005 um 10:03
MitschL
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 211

Win 98 SE, Win 2000
D5 Pers, D6 Pers und D7 Pro
BeitragVerfasst: Mi 09.03.05 11:01 
Hm,

was ist das für eine Unit? Was steht drin? Worum geht's da? Hat es was mit Formularen zu tun?

Also, wenn ich in einem meiner Projekte eine neue Unit erstelle und speichere, wird ihr Standort automatisch dem Projekt hinzugefügt, was man an der Projekt-Datei erkennen kann.
Dazu geselle ich dann nur noch die uses in den jeweiligen anderen Units und das war's bei mir.
Ich stellte die Fragen nur, weil es wirklich so einfach ist.

gegrüßt!

_________________
"Bloßes Ignorieren ist noch keine Toleranz." (Theodor Fontane)
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: Mi 09.03.05 11:16 
In deiner Unit test gibt es kurz unter Implementation eine Zeile {$R *.DFM}. Diese musst Du einfach entfernen.

_________________
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.
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mi 09.03.05 11:22 
hallo,

danke erstmal,

dachte auch, dass es genau so einfach ist...

Es ist einfach ne einfache unit mit functions, ohne ein zugeordnetes formular unter type...
klar hab ich die dann in die uses der anderen entsprechenden units mit eingebunden...
aber leider, wie gesagt frägt er nach ner dfm Datei..????
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: Mi 09.03.05 11:54 
Welche Delphi-Version nutz Du?

Werf mal einen Blick in die Projekt-Datei. Findet sich dort noch eine %FILE-Direktive, die die DFM einbindet?

_________________
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.
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mi 09.03.05 12:18 
hallo,

danke BenBe das mit {$R *.DFM} war der Hund...
(hab den Teil aus ner anderen unit rüber kopiert und da stand {$R *.DFM} bei implementation mit drin...)

(hab meine erste antwort anscheinend zeitgleich mit Deiner geschrieben...sorry

christoph