Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Append text to a rich edit w/o using ReplaceSel Pin
Justin Tay26-Jun-06 3:33
Justin Tay26-Jun-06 3:33 
GeneralRe: Append text to a rich edit w/o using ReplaceSel Pin
KellyR26-Jun-06 4:04
KellyR26-Jun-06 4:04 
Questionhow we add menu captions in runtime [modified] Pin
vasusree26-Jun-06 3:04
vasusree26-Jun-06 3:04 
AnswerRe: how we add menu captions in runtime Pin
Sarath C26-Jun-06 4:22
Sarath C26-Jun-06 4:22 
QuestionAssertion Error Pin
Amit Agarrwal26-Jun-06 3:01
Amit Agarrwal26-Jun-06 3:01 
AnswerRe: Assertion Error Pin
kakan26-Jun-06 3:09
professionalkakan26-Jun-06 3:09 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 3:18
Amit Agarrwal26-Jun-06 3:18 
GeneralRe: Assertion Error Pin
Zac Howland26-Jun-06 3:35
Zac Howland26-Jun-06 3:35 
The simple solution would be to just do a null-check on the m_hWnd handle. If it is null, skip the set call. A more thorough solution might be to figure out why you are trying to set a window's text prior to creation to begin with. I've seen many people deal with communication-type code where they initialize the communications port (serial, ethernet, etc) in the application's InitInstance method and wonder why they have problems (a better solution in many cases is to do that initialization from the OnInitDialog/OnInitialUpdate method in the dialog or view class).

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: Assertion Error Pin
kakan26-Jun-06 3:38
professionalkakan26-Jun-06 3:38 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 3:46
Amit Agarrwal26-Jun-06 3:46 
GeneralRe: Assertion Error Pin
kakan26-Jun-06 3:49
professionalkakan26-Jun-06 3:49 
GeneralRe: Assertion Error Pin
David Crow26-Jun-06 3:43
David Crow26-Jun-06 3:43 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 3:51
Amit Agarrwal26-Jun-06 3:51 
GeneralRe: Assertion Error Pin
David Crow26-Jun-06 4:00
David Crow26-Jun-06 4:00 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:06
Amit Agarrwal26-Jun-06 4:06 
GeneralRe: Assertion Error Pin
David Crow26-Jun-06 4:11
David Crow26-Jun-06 4:11 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:15
Amit Agarrwal26-Jun-06 4:15 
AnswerRe: Assertion Error Pin
David Crow26-Jun-06 5:07
David Crow26-Jun-06 5:07 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 18:30
Amit Agarrwal26-Jun-06 18:30 
GeneralRe: Assertion Error Pin
David Crow27-Jun-06 3:19
David Crow27-Jun-06 3:19 
GeneralRe: Assertion Error Pin
Amit Agarrwal27-Jun-06 3:23
Amit Agarrwal27-Jun-06 3:23 
QuestionRe: Assertion Error Pin
David Crow27-Jun-06 3:50
David Crow27-Jun-06 3:50 
AnswerRe: Assertion Error Pin
FarPointer26-Jun-06 4:14
FarPointer26-Jun-06 4:14 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:50
Amit Agarrwal26-Jun-06 4:50 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:55
Amit Agarrwal26-Jun-06 4:55 

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.