Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 07.05.05 15:30 
ausblenden Delphi-Quelltext
1:
ShellExecute(Application.Handle, 'open', extractfilepath(Paramstr(0))+'\Support\FabianWalz@web.de.url'nilnil, SW_SHOW);					


Was mache ich hier falsch??

Als ich den Code geschrieben habe ließ es sich euínwandtfrei compiliren. Aber nach ner kleienen Änderung in ner anderern Unit kommt plötzlich dieser Fehler:
Zitat:
[Fehler] Unit7.pas(42): E2010 Inkompatible Typen: 'string' und 'PAnsiChar'


KAMM MIR JEMAND HELFEN??
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 07.05.05 15:48 
ausblenden Delphi-Quelltext
1:
ShellExecute(Application.Handle, 'open'PChar(extractfilepath(Paramstr(0))+'\Support\FabianWalz@web.de.url')nilnil, SW_SHOW);					
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Sa 07.05.05 15:49 
Das gab es auch schon hundertmal ;)!
Casten heisst das Zauberwort: PChar(String);.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Sa 07.05.05 18:08 
So dumm das mag, bare so hatte ich's dann probiert. Gegangen is es trotzdem nicht. Nja, jetzt geht's, Danke!
Vielleicht liegt's ja an der Einagebgeschwindigkeit :lol: