Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mo 31.10.05 15:18 
Hallo,
ich habe ein Haupt-Prog das ein DLL-Prog aufruft. alles ist in Ordnung solange man nicht in der Taskbar auf das Haupt-Prog klickt.Dann ist das nämlich im Vordergrund und die DLL dahinter. Das Hauptprog ist (soll auch) deaktiviert. Am besten wäre es wenn ich das DLL-Prog in der Taskbar sehen würde damit ich es wieder nach vorne holen kann.

mfg
moloch
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 31.10.05 15:20 
was ist bitte ein DLL Prog?

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 01.11.05 15:01 
dll mit oberfläche
meine ich
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Di 01.11.05 16:24 
Du hast nen Programm was eine DLL lädt, die ein Formular hat. In der Taskleiste werden normalerweise nur die Programme angezeigt. Sieht so aus als müsstest in der dll selbst noch ein eigenes Window registrieren. Am besten suchst hier mla im Forum. Wenn ichs immer noch nicht richtig verstanden haben sollte, formulierst du das Problem besser nochmal neu.

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
CAD Programmierer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 17



BeitragVerfasst: Mi 02.11.05 10:19 
Titel: DLL -prog
Ich selbst schreibe auch an einem Programm das ziemlich viele DLLs benützt. Formular- DLLs sowie auch Normale DLLs mit Funktionen und Prozeduren darin.

Ich denke, dass du eine ganz banale Formular- Dll Erstellt hast, das in der DLL enthaltene Formular über eine Schnittstellenroutine der Außenwelt :) zugänglich gemacht hast und diese Schnittstellenroutine wiederum vom Hauptprogramm aufruftst.

Da das Hauptprogramm der "Boss" über diese Formular- Dll ist, wird natürlich nur das Hauptprogramm in der taskleiste angezeigt.

Ich persönlich habe noch nie erlebt, dass eine DLL extra in der Taskbar angezeigt wird, lasse mich aber gerne eines Besseren belehren!

MFG Gregor :wink:
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 03.11.05 11:59 
also das Problem wurde schon richtig verstanden denke ich
mein gedanke mit der taskbar ist ja nur eine lösungsidee.
vielleicht kriegt man das auch anders gelöst ausser mit "fsStayOnTop"
nur wie?
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 03.11.05 12:08 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
interface
...
Type DLLForm = class(TForm)
  ...
  public
      procedure CreateParams(var Params: TCreateParams); override;
    end;
...
implementation
....
procedure TChannels.CreateParams(var Params: TCreateParams);
begin
  inherited;
  Params.ExStyle:=Params.ExStyle or WS_EX_APPWINDOW;
  Params.WndParent:=GetDesktopWindow;
end;
...


Das müsste funktionieren, wenn du das in dein DLL Formular packst.

//Edit: nur "implementation" richtig geschrieben.

_________________
Programmers never die, they just GOSUB without RETURN
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 03.11.05 12:33 
Ich muss vielleicht noch sagen dass ich es mir vielleicht etwas leicht gemacht habt um aus meinem Prog eine dll zu machen. Ich haben nämlich erst das Programm geschrieben und dann nachträglich anstelle program libary in den kopf geschrieben.
ist deine funktion dafür auch noch richtig und wenn ja wie rufe ich sie dann auf?


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

uses
  Forms,
  Main in 'Main.pas' {Main}

exports
  GlzMonatsAbzugStart;

begin
end.


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 03.11.05 12:37 
*probieren geht über studieren*
probiers aus!
Aufrufen musst DU die Prozedur so oder so net.
Exportieren musst du se wahrscheinlich auch net.
Du musst sie halt in der Unit einfügen, in der dein Formular ist.

_________________
Programmers never die, they just GOSUB without RETURN
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Do 03.11.05 14:07 
super.ich dank dir.
kannst du mir auch noch erklären wie diese funktion gerufen wird.