Autor Beitrag
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: So 02.04.06 10:14 
Ich habe irgendein Programm-x
das kann ein bestimmtes Format ins Memo laden.
Was muss ich machen das Windows auch die Datei in mein Programm laden kann.
Bzw. Was muss in mein Programm das das geht.

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 02.04.06 10:19 
Wenn du "Datei -> öffnen mit" benutzt, wird dein Programm mit dem Parameter "Dateiname" gestartet. In das Onshow (oder Oncreate) deiner Form muss dann in etwa sowas:
ausblenden Delphi-Quelltext
1:
2:
3:
if (Paramcount >= 1) then
  Memo1.Lines.LoadfromFile(Paramstr(1));
  // oder halt sonstwas, was du halt mit der Datei so machen willst...

_________________
We are, we were and will not be.
Fighter#1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: So 02.04.06 10:35 
Supervielen Dank!
Funktioniert einwandfrei!
:dance2: :D :D

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 10:48 
irgendwie versteh ich die fragestellung nicht! könnte mir die jemand erklären??
Fighter#1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Sa 08.04.06 13:34 
Ist doch klar,
Im Windows-Explorer ( ich denke du weisst was ich meine )
sind doch da immer so Dateien in den Ordnern angezeigt.
zum Beispiel Bild001.jpg da tut so ein Programm aufgehn wenn man zwei mal draufdrückt.
Zum Beispiel die Windows-Bild und Faxanzeige.
Wenn man rechtklick auf diese Datei druckt dann gibts da den Menüpunkt :
Öffnen Mit ... --> Programm Auswählen... --> und dann mein Programm.
Dann öffnet Windows diese Datei mit meinem Programm, und meine Programm Ikone wird angezeigt.
Das war das Ziel, und es klappt!

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 08.04.06 18:42 
hmm.. ok! danke!
minnime
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 171

Win 7
Delphi Prism 2011, C# (VS 2010)
BeitragVerfasst: Sa 08.04.06 18:55 
Ich bin mal so frei diesen thread mit meiner Frage zu erweitern.
Es gibt ja auch die Möglichkeit ein Programm zu starten indem man die zu verarbeitende Datei per Drag & Drop darüber zieht, wie mach ich denn soetwas bzw. welche Funktionen werden dafür verwendet.
Fighter#1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Sa 08.04.06 19:08 
Was hast du denn für ein Programm?
Ich denke das sind hauptsächlich Programme zum Komprimieren von Dateien, sonst einfach mal genauso probieren.

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse