Autor Beitrag
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 19.12.04 14:32 
Hi,

ich hab Delphi 7 PE zwar schon seit ich es von der c't-CD habe, allerdings fällt mir erst jetzt auf, dass ich das Icon von Konsolenanwendungen nicht mehr ändern kann (ging mit D6PE noch). Natürlich steht {$R *.res} gleich nach uses, aber Delphi lässt mich das Icon trotzdem nicht ändern :?

Jemand eine Idee?
AXMD
AXMD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Do 23.12.04 23:34 
Wirklich niemand eine Idee? Ich will unbedingt mal das Icon meiner Konsolen-EXE ändern - der Siebener gefällt mir nicht :cry:

AXMD
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Do 23.12.04 23:40 
Seit wann brauchen Konsolenanwendungen Icons? Was passiert bei D7, wenn du *.res ganz weglässt?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 24.12.04 01:47 
Wenn du das Icon meinst das im Explorer angezeigt wird, versuchs mal mit dem Resource Hacker. :nixweiss:
Damit kannst du mitunter auch das Icon eines Programmes ändern. :wink:


Zuletzt bearbeitet von Coder am Fr 24.12.04 01:50, insgesamt 1-mal bearbeitet
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 24.12.04 01:49 
Also bei mir, D6 Personal, geht es so ohne Probleme:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

{$R *.res}

begin
  { TODO -oUser -cConsole Main : Hier Code einfügen }
end.
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Fr 24.12.04 09:46 
Luckie hat folgendes geschrieben:
Also bei mir, D6 Personal, geht es so ohne Probleme:

Das ist ja der Punkt. In D6 kann ich keine Probleme feststellen. :gruebel:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Spatz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Fr 24.12.04 10:02 
Bei Delphi7 kannst du das Icon unter project-->options-->application ändern
AXMD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Fr 24.12.04 11:04 
Spatz hat folgendes geschrieben:
Bei Delphi7 kannst du das Icon unter project-->options-->application ändern


Eben nicht, das ist disabled.



Luckie hat folgendes geschrieben:
Also bei mir, D6 Personal, geht es so ohne Probleme:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
program Project2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

{$R *.res}

begin
  { TODO -oUser -cConsole Main : Hier Code einfügen }
end.


Unter D6 gings bei mir ja auch, aber eben nicht mehr unter D7.

.Chef hat folgendes geschrieben:
Seit wann brauchen Konsolenanwendungen Icons? Was passiert bei D7, wenn du *.res ganz weglässt?


Dann hab ich das "normale" Windows-Icon (also dieses weiße "Fenster" mit dem blauen Rahmen). Ich hätt schon gern ein Icon, aber was noch viel wichtiger wäre: die Dateiinformationen (Version, Copyright etc.): das ist bei mir nämlich auch alles disabled.

//EDIT: Was mich ja am meisten an diesen Umständen stört ist die Tatsache, dass ich mich entscheiden kann: entweder das hässliche Icon mit dem Delphi-Siebener und Versionsinfos oder normales Icon und keine Versionsinfos (also wenn ich die *.res nicht einbinde)

AXMD
Spatz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Fr 24.12.04 11:40 
Vieleicht liegt es ja an der PE von Delphi. Ich habe die Enterprise Edition und da funktioniert es wunderbar...
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 12.10.05 08:04 
Ich habe ebenfalls D7 Enterprise. Bei mir geht es nicht. Ebenso wie die Copyrightinfos.

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 12.10.05 10:15 
Versuchs mal mit
Versionsinfo in das Projekt übernehmen.
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 12.10.05 10:39 
Im konkreten Project gehts mir nur ums Icon. Bloß gut das ich noch irgendwo tief in der Kiste eine D5 habe :lol:

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 12.10.05 10:50 
Also bei Mir gehts auch hab dieselbe Delphi7 Version
Bei Versionsinfo ist es bei mir auch Diabled wenn Ich den Haken setzt bei Versionsinfo übernehmen kann Ich alles eingeben.
Dann kann es doch nur an irgendeiner Einstellung bei Dir Liegen.
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 12.10.05 10:58 
ausblenden Delphi-Quelltext
1:
if (IchRausFinden) and (NichtVergessen) and (ThreadWiederFinden) then IchPosten;					

:lol:

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Mi 19.10.05 13:30 
Probelm erkannt. Ich habe versucht das Symbol für eine W32 Anwendung zu nehmen. Das ging nicht ungültiges Format oder sowas. Jedenfalls habe ich es nochmal mit einem Icon-Editor geöffnet und als Icon gespeichert. Dann konnte ich es zwar immmer noch nicht in Delphi auswählen (über den Dlg für die Consolenanwendung, in der W32 ging es dann wie gewohnt), aber nach dem erneuten compilieren der Resource hatte ich auch das Symbol für die EXE nach dem Compilieren des Quelltextes.
Mich wundert das der Resourcen-Compilier nicht schon was bemängelt hat??

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.