Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2006.10.29;
Скачать: [xml.tar.bz2];

Вниз

Как получить иконку из расширения файла?   Найти похожие ветки 

 
Darkwing ©   (2006-10-10 15:29) [0]

ExtractAssociatedIcon не катит т.к. сам файл не существует а есть только текстовая строка с расширением? Можно ковыряться в реестре самому, но может есть путь попроще?


 
clickmaker ©   (2006-10-10 15:42) [1]

SHGetFileInfo


 
Darkwing ©   (2006-10-10 15:52) [2]


> clickmaker ©


а как быть с этим:

WINSHELLAPI DWORD WINAPI SHGetFileInfo(

   LPCTSTR pszPath,  
   ...
   ...
  );

pszPath:
Pointer to a buffer that contains the path and filename. Both absolute and relative paths are valid.

имени то нету.

и еще [Now Supported on Windows NT]


 
Darkwing ©   (2006-10-10 15:54) [3]

сорри. я прочитал [NoT Supported on Windows NT]. ошибся.

а вот с именем файла что делать?


 
clickmaker ©   (2006-10-10 15:54) [4]


> а как быть с этим:

справку читай внимательней
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this parameter does not have to be a valid file name. The function will proceed as if the file exists with the specified name and with the file attributes passed in the dwFileAttributes parameter. This allows you to obtain information about a file type by passing just the extension for pszPath and passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes


> и еще [Now Supported on Windows NT]

и что?


 
Darkwing ©   (2006-10-10 15:56) [5]

ок. вопрос снят.


> clickmaker ©

Спасибо. :)



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2006.10.29;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.044 c
3-1157012836
SergP.
2006-08-31 12:27
2006.10.29
Не получается выполнить процедуру.


3-1156829716
Orxan
2006-08-29 09:35
2006.10.29
Юникоды и компонент TOracleQuery


15-1160286343
grisme
2006-10-08 09:45
2006.10.29
base64 в почте


2-1160926910
ZeroSPiRiT
2006-10-15 19:41
2006.10.29
Передача файлов по сети


15-1160135080
salexn
2006-10-06 15:44
2006.10.29
Локализация компонент





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский