tags:

views:

68

answers:

4

Hi,

I want the small images of different file formats (docx,ppt,txt etc.) to display along with the file names of corresponding type.

Any link to get these images?

TIA.

A: 

http://famfamfam.com/lab/icons/silk/

Natrium
A: 

If you want to display a file list with the associated icons showing net to the file name in your program, you can use the SHCreateFileExtractIcon Function from the shell extension of Windows. It extracts the associated icon for a given file.

HRESULT SHCreateFileExtractIcon(      
    LPCTSTR pszFile,
    DWORD dwFileAttributes,
    REFIID riid,
    void **ppv

If you want to have the exact icons that are associated with files at any time, this is the way to go. You could always store these icons you obtain to disc to come up with your own set of icons.

Ralph Rickenbach
+1  A: 

http://stackoverflow.com/questions/949457/microsoft-office-icons-for-development/949574#949574

[the answer linked to is mine from a lost login]