Click here to Skip to main content
15,904,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Winsock2 problem Pin
searcher083-Oct-06 17:49
searcher083-Oct-06 17:49 
AnswerRe: Winsock2 problem Pin
Hamid_RT3-Oct-06 18:48
Hamid_RT3-Oct-06 18:48 
QuestionOne class with Multiple IDDs (is this possible) Pin
kitty53-Oct-06 6:35
kitty53-Oct-06 6:35 
AnswerRe: One class with Multiple IDDs (is this possible) Pin
cje3-Oct-06 10:30
cje3-Oct-06 10:30 
AnswerRe: One class with Multiple IDDs (is this possible) Pin
David Crow3-Oct-06 11:14
David Crow3-Oct-06 11:14 
QuestionWorking with colors Pin
shoelace3-Oct-06 5:32
shoelace3-Oct-06 5:32 
AnswerRe: Working with colors Pin
Chris Losinger3-Oct-06 8:04
professionalChris Losinger3-Oct-06 8:04 
QuestionHow to get en exe default icon Pin
Kharfax3-Oct-06 4:45
Kharfax3-Oct-06 4:45 
Hi people

Im filling a CListCtrl with a lot of exe files, and I would like to show the .exe icon next to its name.

I tried the following :

<br />
<br />
hMod = LoadLibraryEx(path, NULL, LOAD_LIBRARY_AS_DATAFILE);<br />
								<br />
if(hMod != NULL) {<br />
     imageIndex = m_imageList.Add(LoadIcon(hMod, MAKEINTRESOURCE(1)));<br />
<br />


Well, that works just in some cases, but doesn't in a lot.

Does anyone knows what can I do to load the default icon of each exe?
Shouldnt be so hard because explorer.exe open the icon always...

Thanks in advance Big Grin | :-D
QuestionRe: How to get en exe default icon Pin
David Crow3-Oct-06 4:48
David Crow3-Oct-06 4:48 
AnswerRe: How to get en exe default icon Pin
Kharfax3-Oct-06 4:53
Kharfax3-Oct-06 4:53 
AnswerRe: How to get en exe default icon, more problems :S Pin
Kharfax3-Oct-06 5:34
Kharfax3-Oct-06 5:34 
QuestionRe: How to get en exe default icon, more problems :S Pin
David Crow3-Oct-06 5:54
David Crow3-Oct-06 5:54 
AnswerRe: How to get en exe default icon, more problems :S Pin
Kharfax3-Oct-06 6:18
Kharfax3-Oct-06 6:18 
AnswerRe: How to get en exe default icon, more problems Pin
James R. Twine3-Oct-06 6:44
James R. Twine3-Oct-06 6:44 
GeneralRe: How to get en exe default icon, more problems Pin
toxcct3-Oct-06 6:59
toxcct3-Oct-06 6:59 
GeneralRe: How to get en exe default icon, more problems :S Pin
David Crow3-Oct-06 6:59
David Crow3-Oct-06 6:59 
GeneralRe: How to get en exe default icon, more problems :S Pin
Kharfax3-Oct-06 7:13
Kharfax3-Oct-06 7:13 
GeneralSemi Solved Pin
Kharfax3-Oct-06 7:59
Kharfax3-Oct-06 7:59 
QuestionRe: Semi Solved Pin
David Crow3-Oct-06 8:44
David Crow3-Oct-06 8:44 
AnswerRe: Semi Solved Pin
Kharfax3-Oct-06 8:53
Kharfax3-Oct-06 8:53 
GeneralRe: Semi Solved Pin
Hamid_RT4-Oct-06 7:56
Hamid_RT4-Oct-06 7:56 
GeneralRe: Semi Solved Pin
Kharfax4-Oct-06 8:00
Kharfax4-Oct-06 8:00 
AnswerRe: How to get en exe default icon Pin
Nisamudheen3-Oct-06 20:26
Nisamudheen3-Oct-06 20:26 
GeneralRe: How to get en exe default icon Pin
Kharfax4-Oct-06 8:04
Kharfax4-Oct-06 8:04 
AnswerRe: How to get en exe default icon Pin
Mark Salsbery4-Oct-06 10:08
Mark Salsbery4-Oct-06 10:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.