Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: throw() Pin
prasad_som26-Mar-07 19:52
prasad_som26-Mar-07 19:52 
GeneralRe: throw() Pin
vibindia26-Mar-07 19:55
vibindia26-Mar-07 19:55 
AnswerRe: throw() Pin
Stephen Hewitt26-Mar-07 19:48
Stephen Hewitt26-Mar-07 19:48 
AnswerRe: throw() Pin
Nemanja Trifunovic27-Mar-07 2:04
Nemanja Trifunovic27-Mar-07 2:04 
QuestionHow to load error icon on DialogBox at run time? Pin
Atul2326-Mar-07 19:06
Atul2326-Mar-07 19:06 
AnswerRe: How to load error icon on DialogBox at run time? Pin
prasad_som26-Mar-07 19:24
prasad_som26-Mar-07 19:24 
GeneralRe: How to load error icon on DialogBox at run time? Pin
Atul2326-Mar-07 21:38
Atul2326-Mar-07 21:38 
AnswerRe: How to load error icon on DialogBox at run time? Pin
prasad_som27-Mar-07 0:15
prasad_som27-Mar-07 0:15 
M. Atul wrote:
But i want to Load it at run time, in which event of DialogBox i have to write code.


As explained earlier, AfxMessageBox should suffice you if you are not doing any customization with it.
Otherwise, Override OnInitDialog to look it something similar to,
BOOL CMyDlg::OnInitDialog()
{
  // other initialization code
   ...
   SetIcon(LoadIcon(NULL,MAKEINTRESOURCE(IDI_ERROR)),FALSE);//set the icon
   return TRUE;  // return TRUE  unless you set the focus to a control
}



QuestionError : CommandLineToArgvW is not a member of '`global namespace'' Pin
harshadha26-Mar-07 18:48
harshadha26-Mar-07 18:48 
AnswerRe: Error : CommandLineToArgvW is not a member of '`global namespace'' Pin
Stephen Hewitt26-Mar-07 18:54
Stephen Hewitt26-Mar-07 18:54 
GeneralRe: Error : CommandLineToArgvW is not a member of '`global namespace'' Pin
harshadha26-Mar-07 19:00
harshadha26-Mar-07 19:00 
AnswerRe: Error : CommandLineToArgvW is not a member of '`global namespace'' Pin
prasad_som26-Mar-07 19:20
prasad_som26-Mar-07 19:20 
GeneralRe: Error : CommandLineToArgvW is not a member of '`global namespace'' Pin
harshadha26-Mar-07 20:22
harshadha26-Mar-07 20:22 
GeneralRe: Error : CommandLineToArgvW is not a member of '`global namespace'' Pin
prasad_som26-Mar-07 20:27
prasad_som26-Mar-07 20:27 
QuestionItem's problem of states and action Pin
Chen-XuNuo26-Mar-07 18:13
Chen-XuNuo26-Mar-07 18:13 
AnswerRe: Item's problem of states and action Pin
Chen-XuNuo27-Mar-07 1:21
Chen-XuNuo27-Mar-07 1:21 
QuestionPrev & Next Button in PrintPreview Pin
Ram Murali26-Mar-07 17:20
Ram Murali26-Mar-07 17:20 
QuestionUsing LoadLibrary on EXE to call exported functions? Pin
rforte26-Mar-07 17:08
rforte26-Mar-07 17:08 
QuestionRe: Using LoadLibrary on EXE to call exported functions? Pin
David Crow27-Mar-07 3:40
David Crow27-Mar-07 3:40 
QuestionAdmin Elevation through Manifest Pin
Richard Andrew x6426-Mar-07 16:45
professionalRichard Andrew x6426-Mar-07 16:45 
AnswerRe: Admin Elevation through Manifest Pin
Michael Dunn26-Mar-07 16:52
sitebuilderMichael Dunn26-Mar-07 16:52 
GeneralRe: Admin Elevation through Manifest Pin
Richard Andrew x6426-Mar-07 17:00
professionalRichard Andrew x6426-Mar-07 17:00 
GeneralRe: Admin Elevation through Manifest Pin
Richard Andrew x6426-Mar-07 17:12
professionalRichard Andrew x6426-Mar-07 17:12 
Questionvery tough socket programming problem, Pin
xyhan26-Mar-07 13:52
xyhan26-Mar-07 13:52 
AnswerRe: very tough socket programming problem, Pin
Mark Salsbery26-Mar-07 19:17
Mark Salsbery26-Mar-07 19:17 

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.