Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
   FWIW, I believe that the "Default" icon is the first one found in the resources.  Barring any more elegant solution, you could always just loop over a few low values to try to find the first icon in the executable.  For example, you could always search for values "0" through "100", and stop with the first one found...

   You could also try to load the resource information directly from the executable to locate the first one.

   I do not suppose that using IDI_APPLICATION with LoadIcon(...) works for you?

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

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 
AnswerRe: How to get en exe default icon Pin
Mark Salsbery4-Oct-06 10:11
Mark Salsbery4-Oct-06 10:11 
GeneralRe: How to get en exe default icon Pin
Mark Salsbery4-Oct-06 10:12
Mark Salsbery4-Oct-06 10:12 
GeneralRe: How to get en exe default icon Pin
Kharfax5-Oct-06 5:08
Kharfax5-Oct-06 5:08 
GeneralRe: How to get en exe default icon Pin
Mark Salsbery5-Oct-06 7:16
Mark Salsbery5-Oct-06 7:16 
GeneralRe: How to get en exe default icon Pin
Mark Salsbery5-Oct-06 7:18
Mark Salsbery5-Oct-06 7:18 
GeneralSolved at last :D Pin
Kharfax5-Oct-06 7:43
Kharfax5-Oct-06 7:43 

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.