Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Problem mit GetInfoTip unter Vista (https://www.delphipraxis.net/93243-problem-mit-getinfotip-unter-vista.html)

marcos 3. Jun 2007 09:46


Problem mit GetInfoTip unter Vista
 
Hallo,

ich versuche unter Vista die Shellfunktion GetInfoTip zu nutzen. Grundsätzlich funktioniert sie, nur in der Zeile, wo das Änderungsdatum der Datei steht erscheinen Fragezeichen: so etwa ?02.?06.?07 ?12:?20.
Hier ein Beispiel mit der Funktion aus dem JEDI-Projekt
Delphi-Quellcode:
function SHGetItemInfoTip(const Folder: IShellFolder; Item: PItemIdList): string;
var
  QueryInfo: IQueryInfo;
  InfoTip: PWideChar;
begin
  Result := '';
  if (Item = nil) or (Folder = nil) then
    Exit;
  if Succeeded(Folder.GetUIObjectOf(0, 1, Item, IQueryInfo, nil,
    Pointer(QueryInfo))) then
  begin
    if Succeeded(QueryInfo.GetInfoTip(0, InfoTip)) then
    begin
      Result := WideCharToString(InfoTip);
      SHFreeMem(Pointer(InfoTip));
    end;
  end;
end;
Unter XP gibt es keine Probleme.
Hat jemand eine Idee, was das sein kann?

Gruß
marcos


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz