Autor Beitrag
Aton
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 125

Windows XP
D7 Enterprise
BeitragVerfasst: Mo 31.05.04 14:39 
Hallo Forum,

ich habe mal versucht, bei meinem Projekt die Hinweise und Warnungen des Compilers zu reduzieren. Dazu meine Frage: Kann man was gegen folgende Warnung tun?

Zitat:
Unsicherer Typ 'PChar'


Sie tritt zum Beispiel auf, wenn ich das Standard-Emailprogramm öffnen möchte:

ausblenden Delphi-Quelltext
1:
ShellExecute(0, 'open', PChar('mailTo:'+ sEmail+ '?subject=.'), Nil, Nil, SW_SHOW);					


Wie macht Ihr das? Oder missachtet ihr einfach die Compiler-Warnungen...
Gruß Jens.
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mo 31.05.04 15:01 
Projekt -> Optionen -> CompilerMeldungen -> ganz unten.

raziel

_________________
JSXGraph
Aton Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 125

Windows XP
D7 Enterprise
BeitragVerfasst: Mo 31.05.04 15:45 
Danke Raziel.

Ist auch nur so möglich, oder? Einen PChar brauche ich ja für diese Funktion... :D

Gruß Jens.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 31.05.04 18:30 
Eventuell gehts auch mit

ausblenden Delphi-Quelltext
1:
{$WARNINGS OFF}					
mirage228
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 338

Win 7 Prof.
Delphi 2005 Prof., Delphi 2010 Prof.
BeitragVerfasst: Di 01.06.04 08:08 
obbschtkuche hat folgendes geschrieben:
Eventuell gehts auch mit

ausblenden Delphi-Quelltext
1:
{$WARNINGS OFF}					


Vorsicht!

Das schaltet _alle_ Compilerwarnungen aus - das kann zu Problemen führen.

mfG
mirage228

_________________
May the source be with you, stranger.