%s & %
S ... siehe
MSDN
in Deutsch:
%s = selber Stringtyp (
Ansi/Wide), wie die Aufzurufende Funktion
%
S = anderes Stringformat
also bei wvsprintfW %s für PWideChar/WideString und %
S für P(
Ansi)Char/(
Ansi)String
und bei wvsprintf/wvsprintfA %s für P(
Ansi)Char/(
Ansi)String und %
S für PWideChar/WideString
Delphi-Quellcode:
MessageBoxW(hDPM, PWideChar(Format('Error while downloading and processing updateinformation.'
+ #13#10'Message: %S'#13#10'Errorclass: %S', [e.Message, e.ClassName])),
'[Update Plugin] Downloading/Processingerror', MB_OK or MB_ICONERROR);
// dieses _( ) macht 'ne Typenumwandlung, oder wie?
MessageBoxW(hDPM, PWideChar(Format('Error while downloading and processing updateinformation.'
+ #13#10'Message: %s'#13#10'Errorclass: %s', [_(e.Message), _(e.ClassName)])),
'[Update Plugin] Downloading/Processingerror', MB_OK or MB_ICONERROR);