Autor Beitrag
fuggaz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 106



BeitragVerfasst: So 02.09.07 00:32 
Hallo,
Diese Fehlermeldung bekomme ich.
Ich kann zwar compilieren aber ich würde das Problem gerne beheben.

Ich habe eine checkbox und den folgenden Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var hwndafter:integer;
begin
if cb_pos.Text='Bottom' then
  hwndafter:=HWND_BOTTOM
else if cb_pos.Text='NoTopMost' then
  hwndafter:=HWND_NOTOPMOST
else if cb_pos.Text='Top' then
  hwndafter:=HWND_TOP
else if cb_pos.Text='TopMost' then
  hwndafter:=HWND_TOPMOST;
...
end;


Fehler wird in der :' hwndafter:=HWND_TOPMOST;'
und in der :'else if cb_pos.Text='Top' then'
Zeile angezeigt.

Kann mir jemand sagen, wo das Problem liegt?


mfg fuggaz

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 02.09.07 00:37 
hwndafter ist vom Typ Integer. Das heisst, er kann Zahlen von -2147483648 bis 2147483647 aufnehmen. HWND_TOPMOST ist jedoch vom Typ Cardinal und hat den Wert 4294967295, passt da also nicht rein.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
fuggaz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 106



BeitragVerfasst: So 02.09.07 00:54 
Alles klar, funktioniert jetzt :-)

Danke!