Autor Beitrag
$ebbi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Fr 13.04.12 00:23 
Hey,

ich würde gerne eine Internetseite öffnen, allerdings soll man diese (teilweise) selbst bestimmen können

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
zusatz: string;
.
.
.
(ShellExecute(Handle, 'open''http://www.beispiel\'  + zusatz , nilnil, SW_SHOW))


der Zusatz soll vom Benutzer selbst gewählt werden können durch Eingabe, allerdings bekomme ich immer die Fehlermeldung "inkompatible Typen String und PWideChar" hab jetzt versucht das ganze in einen WideChar umzuwandeln aber es klappt nicht.
Wie lässt sich das Problem lösen???

mfg Sebbi
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Fr 13.04.12 01:00 
ShellExecute(Handle, 'open', PChar('http://www.beispiel/' + zusatz) , nil, nil, SW_SHOW)

_________________
Das Problem liegt üblicherweise zwischen den Ohren H₂♂
DRY DRY KISS