Hallo, das setzen der "einfachen" Properties funktioniert problemlos wie folgt:
FillChar (FPSpec^, SizeOf (TPropSpec), #0);
With FPSpec^ do begin
ulKind := PRSPEC_PROPID;
propID := PID;
end;
FillChar (FPropVariant^, SizeOf (TPropVariant), #0);
with FPropVariant^ do begin
vt := VT_LPWSTR;
pwszVal := PWideChar (Value);
end;
OleCheck (FPropertyStorage.WriteMultiple (1, FPSpec, FPropVariant, PID_FIRST_USABLE));
soweit so gut, aber ich komme leider mit den zwei: HeadingPairs und TitlesofPairs nicht zurecht. Hätte vielleicht jemand ein kurzes Beispiel.
Danke
Matthias Förster
FillChar (FPSpec^, SizeOf (TPropSpec), #0);
With FPSpec^ do begin
ulKind := PRSPEC_PROPID;
propID := PID;
end;
FillChar (FPropVariant^, SizeOf (TPropVariant), #0);
with FPropVariant^ do begin
vt := VT_LPWSTR;
pwszVal := PWideChar (Value);
end;
OleCheck (FPropertyStorage.WriteMultiple (1, FPSpec, FPropVariant, PID_FIRST_USABLE));
soweit so gut, aber ich komme leider mit den zwei: HeadingPairs und TitlesofPairs nicht zurecht. Hätte vielleicht jemand ein kurzes Beispiel.
Danke
Matthias Förster
Comment