Autor Beitrag
cl9wn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 20:51 
Ja, mein Quellcode:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', ini.ReadString('Settings''wowpath'''), nilnil, SW_Normal);					


Warum funktioniert es nicht? Wenn ich ini.ReadString('Settings', 'wowpath', '') mit '...Pfadangabe...' ersetze funktioniert es. Aber das was ich da mit ini.ReadString mache ist doch auch ein String. Hat jemand ne Lösung?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 13.09.08 20:58 
ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, 'open', PChar(ini.ReadString('Settings''wowpath''')), nilnil, SW_Normal);					

_________________
Markus Kinzler.
cl9wn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 21:01 
Okay danke und warum funktioniert forlgendes nicht?:

ausblenden Delphi-Quelltext
1:
AlphaBlendValue := ini.ReadString('Window''opacity', IntToStr(255));					


Error:
[DCC Fehler] Unit1.pas(112): E2010 Inkompatible Typen: 'Byte' und 'string'
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 13.09.08 21:02 
Was für ein Typ hat AlphaBlendValue?

_________________
Markus Kinzler.
cl9wn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 21:04 
AlphaBlendValue ist doch festgelegt. Keine Ahnung welchen Typ des hat... Wo jann ichdas nachsehen?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 13.09.08 21:07 
ausblenden Delphi-Quelltext
1:
AlphaBlendValue := ini.ReadInteger('Window''opacity'255);					

_________________
Markus Kinzler.
cl9wn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 21:14 
Ja, jetzt kann ich compilen aber:

In der Ini steht:

[Window]
opacity=200

Aber wenn ich das programm starte (im oncreate event steht das mit AlphaBlendValue := ...) dann bleibt die AlphaBlendValue auf 255 ...

Woran kanns liegen?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 13.09.08 21:17 
Das ist ja der Standardwert.
Es scheint vorher ein Problem zu geben. Zeig mal den Rest des Code

_________________
Markus Kinzler.
cl9wn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 21:18 
ausblenden Delphi-Quelltext
1:
					


Zuletzt bearbeitet von cl9wn am Sa 13.09.08 21:23, insgesamt 1-mal bearbeitet
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 13.09.08 21:20 
Den Rest liest er aber aus?

_________________
Markus Kinzler.
cl9wn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Sa 13.09.08 21:23 
Fehler gefunden. Ich benutze 2 verschiedene Units mit 2 verschiedenen Formularen. In der unit die hier gepostet wurde habe ich schon eien ini initialisiert. und was war realmlist.ini und in der steh tder wert der opacity nich drin :P Dummheit^^

Danke für die Hilfe!