Autor Beitrag
LeVoS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mo 25.12.06 19:03 
kann mir jemand kurz zeigen, wie ich ein fertiges Projekt ,
was nur dazu da ist um eine dll zu erzeugen, auch per dos befehl
z.B. make -fdatei.dpr -i .... zu kompilieren ????
bekomme immer error 2: command syntax error

ganz einfach - um eine ressourcendatei in dll zu speichern ...

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

uses
  SysUtils,
  Classes;

{$R 'ext_test.res' 'ext_test.rc'}

begin
end.



ERGEBNIS SOLL ext_test.dll SEIN :-)

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt
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: Mo 25.12.06 19:14 
Für die Compilierung der DPR nimmste das hier:
ausblenden Quelltext
1:
dcc32 /b ext_test.dpr					


Das Erstellen der Ressourcen-Datei geht mit:
ausblenden Quelltext
1:
brcc32 /r RCFile RESFile					

_________________
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.
LeVoS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mo 25.12.06 19:22 
danke für die schnelle Hilfe - klappt prima
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: Mo 25.12.06 19:29 
Tipp: Du kannst wenn Du eh nur die Ressourcen brauchst auch die Uses ganz weg lassen ...

_________________
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.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 27.12.06 15:52 
Ich hab noch eine Frage dazu und zwar kann Ich den ausgabepfad der Dll beeinflussen.
Zur Zeit siehts So aus
dcc32 /b "C:\Dokumente und Einstellungen\BLACK\Eigene Dateien\DLL\Neuer Ordner\Bilder.dpr"
dann speichert er mir die Dll ins Verzeichnis C:\Dokumente und Einstellungen\BLACK
Ich hätte Sie aber gern gleich im selben Ordner gespeichert.
Hab schon einiges probiert mit Speicherpfad voranstellen aber leider klappt das nicht ganz.
Hab auch schon den tipp dcc32 /e bekommen funktioniert aber auch nicht.

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
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 27.12.06 22:56 
Du kannst da glaube entweder den Pfad auf der Kommandozeile angeben (schau mal dcc32 /? an) oder du schaust mal in die DOF-Datei ...

_________________
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.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Do 28.12.06 00:29 
Top habs hinbekommen
dcc32 /b "C:\Dokumente und Einstellungen\BLACK\Eigene Dateien\DLL\Neuer Ordner\Bilder.dpr" -E"C:\Dokumente und Einstellungen\BLACK\Eigene Dateien\DLL\Neuer Ordner"

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 28.12.06 00:32 
BTW: Ich habe ein kleines Kommandozeilentool geschrieben, das automatisch die Pfade für benutzte Komponenten aus der Registry ausliest und dann zum Kompilieren des Projektes benutzt.
UPX, Resourcen, etc. werden unterstützt...
www.delphi-forum.de/...41748&highlight=

Auch weitere Parameter können für alle Tools und den Compiler angegeben werden.

Ach so: Da niemand was dazu gesagt hat, habe ich es auch nicht weiterentwickelt... Delphi 2006 kennt das noch nicht, aber das lässt sich leicht ergänzen.