Click here to Skip to main content
15,893,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHashing and Signature in Crypting ! Pin
Hadi Rezaee19-Feb-03 7:11
Hadi Rezaee19-Feb-03 7:11 
GeneralRe: Hashing and Signature in Crypting ! Pin
Chris Losinger19-Feb-03 8:56
professionalChris Losinger19-Feb-03 8:56 
GeneralRe: Hashing and Signature in Crypting ! Pin
Hadi Rezaee19-Feb-03 9:52
Hadi Rezaee19-Feb-03 9:52 
GeneralRe: Hashing and Signature in Crypting ! Pin
Chris Losinger19-Feb-03 9:57
professionalChris Losinger19-Feb-03 9:57 
GeneralRe: Hashing and Signature in Crypting ! Pin
Hadi Rezaee19-Feb-03 10:32
Hadi Rezaee19-Feb-03 10:32 
GeneralRe: Hashing and Signature in Crypting ! Pin
Chris Losinger19-Feb-03 10:41
professionalChris Losinger19-Feb-03 10:41 
GeneralRe: Hashing and Signature in Crypting ! Pin
Hadi Rezaee19-Feb-03 11:02
Hadi Rezaee19-Feb-03 11:02 
QuestionHow to update a exe icon from within Pin
The Lady of Shallots19-Feb-03 6:17
The Lady of Shallots19-Feb-03 6:17 
Hello everyone,
I want to update the icon of my app at runtime after checking to see if a certain condition is true. The new icon to use is defined in my resources. I have looked through past posts on this subject and found some information (mostly using UpdateResource), however I have not been able to get it to work. Here is the code I've got so far:

if( bcondition == TRUE){
HANDLE hIcon = LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDR_MAINFRAME),
IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);

UpdateResource (hIcon, RT_ICON, MAKEINTRESOURCE(IDI_NEWICON),
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), NULL,0);
}

I'm probably totally off here (sorry, still a newbie Smile | :) ), also where should I put this? Does it need to be at a certain point during the creation of the app? Thanks so much!
AnswerRe: How to update a exe icon from within Pin
LiquidKnight19-Feb-03 6:45
LiquidKnight19-Feb-03 6:45 
GeneralRe: How to update a exe icon from within Pin
The Lady of Shallots19-Feb-03 6:59
The Lady of Shallots19-Feb-03 6:59 
GeneralRe: How to update a exe icon from within Pin
LiquidKnight19-Feb-03 11:39
LiquidKnight19-Feb-03 11:39 
GeneralRe: How to update a exe icon from within Pin
The Lady of Shallots21-Feb-03 9:20
The Lady of Shallots21-Feb-03 9:20 
Generalodd cmenu behavior Pin
ns19-Feb-03 5:37
ns19-Feb-03 5:37 
Generaloops..added info Pin
ns19-Feb-03 5:40
ns19-Feb-03 5:40 
GeneralRe: oops..added info Pin
ns19-Feb-03 5:45
ns19-Feb-03 5:45 
GeneralRe: odd cmenu behavior Pin
Roger Allen19-Feb-03 5:45
Roger Allen19-Feb-03 5:45 
GeneralRe: odd cmenu behavior Pin
ns19-Feb-03 5:56
ns19-Feb-03 5:56 
Questionhow can i change main tool bar button state ? Pin
muna_utkal19-Feb-03 4:52
muna_utkal19-Feb-03 4:52 
AnswerRe: how can i change main tool bar button state ? Pin
Roger Allen19-Feb-03 5:21
Roger Allen19-Feb-03 5:21 
AnswerRe: how can i change main tool bar button state ? Pin
Iain Clarke, Warrior Programmer19-Feb-03 5:24
Iain Clarke, Warrior Programmer19-Feb-03 5:24 
GeneralRe: how can i change main tool bar button state ? Pin
Roger Allen19-Feb-03 5:28
Roger Allen19-Feb-03 5:28 
GeneralRe: how can i change main tool bar button state ? Pin
Iain Clarke, Warrior Programmer19-Feb-03 5:39
Iain Clarke, Warrior Programmer19-Feb-03 5:39 
GeneralRe: how can i change main tool bar button state ? Pin
Roger Allen19-Feb-03 6:00
Roger Allen19-Feb-03 6:00 
QuestionHow can i set different cursors of a view ? Pin
muna_utkal19-Feb-03 4:45
muna_utkal19-Feb-03 4:45 
AnswerRe: How can i set different cursors of a view ? Pin
Roger Allen19-Feb-03 5:18
Roger Allen19-Feb-03 5:18 

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.