Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TVN_ITEMEXPANDING of CTreectrl !!! Pin
Naveen8-Aug-08 19:51
Naveen8-Aug-08 19:51 
GeneralRe: TVN_ITEMEXPANDING of CTreectrl !!! Pin
Le@rner8-Aug-08 20:04
Le@rner8-Aug-08 20:04 
QuestionHKLM/Software under Vista. Pin
Bram van Kampen8-Aug-08 15:31
Bram van Kampen8-Aug-08 15:31 
AnswerRe: HKLM/Software under Vista. Pin
Mark Salsbery8-Aug-08 15:38
Mark Salsbery8-Aug-08 15:38 
GeneralRe: HKLM/Software under Vista. Pin
Bram van Kampen8-Aug-08 16:08
Bram van Kampen8-Aug-08 16:08 
GeneralRe: HKLM/Software under Vista. Pin
Mark Salsbery9-Aug-08 5:44
Mark Salsbery9-Aug-08 5:44 
GeneralRe: HKLM/Software under Vista. Pin
Bram van Kampen9-Aug-08 12:34
Bram van Kampen9-Aug-08 12:34 
QuestionSetIcon - Assertion Failed Pin
simon alec smith8-Aug-08 13:49
simon alec smith8-Aug-08 13:49 
Hello,

I am tying to alter the icon, on the top left of the program,
using the followong statements:

HICON hIcon = AfxGetApp()->LoadIcon(IDI_ICON1);
SetIcon(hIcon, TRUE);
***to that effect***

When I run the program
I get a Debug assertion failed, regarding File: afxwin2.inl

I have tried various place's in placing the code, but to no success.
I have read in a artical that after loading you must pass it to the
windows manager, is this the problem? can anybody help?

Thanks

Simon
AnswerRe: SetIcon - Assertion Failed Pin
Mark Salsbery8-Aug-08 14:07
Mark Salsbery8-Aug-08 14:07 
GeneralRe: SetIcon - Assertion Failed Pin
simon alec smith8-Aug-08 14:15
simon alec smith8-Aug-08 14:15 
GeneralRe: SetIcon - Assertion Failed Pin
Mark Salsbery8-Aug-08 14:23
Mark Salsbery8-Aug-08 14:23 
GeneralRe: SetIcon - Assertion Failed Pin
simon alec smith8-Aug-08 14:45
simon alec smith8-Aug-08 14:45 
GeneralRe: SetIcon - Assertion Failed Pin
Mark Salsbery8-Aug-08 14:54
Mark Salsbery8-Aug-08 14:54 
GeneralRe: SetIcon - Assertion Failed Pin
simon alec smith8-Aug-08 14:59
simon alec smith8-Aug-08 14:59 
QuestionCFileDialog Save As file name extension change Pin
Darryl Bryk8-Aug-08 13:34
Darryl Bryk8-Aug-08 13:34 
AnswerRe: CFileDialog Save As file name extension change Pin
Mark Salsbery8-Aug-08 14:04
Mark Salsbery8-Aug-08 14:04 
GeneralRe: CFileDialog Save As file name extension change Pin
Darryl Bryk14-Aug-08 14:45
Darryl Bryk14-Aug-08 14:45 
GeneralRe: CFileDialog Save As file name extension change Pin
Mark Salsbery14-Aug-08 16:40
Mark Salsbery14-Aug-08 16:40 
GeneralRe: CFileDialog Save As file name extension change Pin
Darryl Bryk15-Aug-08 7:02
Darryl Bryk15-Aug-08 7:02 
GeneralRe: CFileDialog Save As file name extension change Pin
Mark Salsbery15-Aug-08 7:21
Mark Salsbery15-Aug-08 7:21 
GeneralRe: CFileDialog Save As file name extension change Pin
Darryl Bryk14-Oct-08 7:36
Darryl Bryk14-Oct-08 7:36 
GeneralRe: CFileDialog Save As file name extension change Pin
Mark Salsbery14-Oct-08 8:30
Mark Salsbery14-Oct-08 8:30 
QuestionDLL Lookup based on UUID Pin
bulg8-Aug-08 13:05
bulg8-Aug-08 13:05 
AnswerRe: DLL Lookup based on UUID Pin
Randor 10-Aug-08 5:13
professional Randor 10-Aug-08 5:13 
GeneralRe: DLL Lookup based on UUID Pin
bulg12-Aug-08 12:34
bulg12-Aug-08 12:34 

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.