Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to show newline in CStatic text? Pin
vikramlinux5-Nov-04 0:54
vikramlinux5-Nov-04 0:54 
GeneralRe: How to show newline in CStatic text? Pin
Anonymous5-Nov-04 2:46
Anonymous5-Nov-04 2:46 
AnswerRe: How to show newline in CStatic text? Pin
Arsalan Malik5-Nov-04 16:53
Arsalan Malik5-Nov-04 16:53 
Questionhow to determine if class created before Pin
nurpinar5-Nov-04 0:15
nurpinar5-Nov-04 0:15 
AnswerRe: how to determine if class created before Pin
vikramlinux5-Nov-04 0:38
vikramlinux5-Nov-04 0:38 
AnswerRe: how to determine if class created before Pin
Cedric Moonen5-Nov-04 0:57
Cedric Moonen5-Nov-04 0:57 
GeneralRe: how to determine if class created before Pin
nurpinar5-Nov-04 1:39
nurpinar5-Nov-04 1:39 
AnswerRe: how to determine if class created before Pin
Henry miller5-Nov-04 2:22
Henry miller5-Nov-04 2:22 
No. In many cases when you compile with debugging and run in a debugger, something will change uninitialized variables to be a obvious bogus constand. In your case it is 0xcccccccc. My debuger uses 0xaaaaaaaa! So already your program is not portable to my debugger.

When you are running optimized code outside of the debugger, those variables are not initialized at all, instead they take on whatever value was in that memory location before! C++ trusts you to know what you are doing. If you don't initialize a variable in optimized code, the optimizer assumes you know by some other means when that variable is initialized, so it doesn't waste a cycle setting that variable.

A pointer is allowed to be 0 (NULL), a hardware location defined by the designers of the hardware, or something the compiler provides out of your control. You can compare against the first two because they never change. The last one should always be treated as if it will change all the time.
AnswerRe: how to determine if class created before Pin
V.5-Nov-04 2:32
professionalV.5-Nov-04 2:32 
QuestionHow to add class to project ? Pin
rrrado5-Nov-04 0:13
rrrado5-Nov-04 0:13 
AnswerRe: How to add class to project ? Pin
Neelesh K J Jain5-Nov-04 1:20
Neelesh K J Jain5-Nov-04 1:20 
GeneralRe: How to add class to project ? Pin
rrrado5-Nov-04 5:10
rrrado5-Nov-04 5:10 
GeneralDetect virtual COM port Pin
Cedric Moonen4-Nov-04 23:56
Cedric Moonen4-Nov-04 23:56 
GeneralRe: Detect virtual COM port Pin
Andrew Walker5-Nov-04 14:39
Andrew Walker5-Nov-04 14:39 
GeneralProblem With ToolTipCtrl Pin
Azghar Hussain4-Nov-04 23:39
professionalAzghar Hussain4-Nov-04 23:39 
GeneralRe: Problem With ToolTipCtrl Pin
vilmer5-Nov-04 2:23
vilmer5-Nov-04 2:23 
GeneralRe: Problem With ToolTipCtrl Pin
Azghar Hussain5-Nov-04 2:41
professionalAzghar Hussain5-Nov-04 2:41 
GeneralResizing text for display Pin
Anonymous4-Nov-04 23:35
Anonymous4-Nov-04 23:35 
GeneralRe: Resizing text for display Pin
John R. Shaw5-Nov-04 11:10
John R. Shaw5-Nov-04 11:10 
Generalplz help....newbie here.....:confused: Pin
namaskaaram4-Nov-04 23:14
namaskaaram4-Nov-04 23:14 
GeneralRe: plz help....newbie here.....:confused: Pin
vilmer5-Nov-04 2:04
vilmer5-Nov-04 2:04 
GeneralRe: plz help....newbie here.....:confused: Pin
namaskaaram7-Nov-04 18:29
namaskaaram7-Nov-04 18:29 
GeneralRe: plz help....newbie here.....:confused: Pin
John R. Shaw5-Nov-04 11:33
John R. Shaw5-Nov-04 11:33 
GeneralRe: plz help....newbie here.....:confused: Pin
namaskaaram7-Nov-04 18:29
namaskaaram7-Nov-04 18:29 
GeneralAdding Scrollbars to a Non Scrollbar CView project. Pin
Per Svedensten4-Nov-04 23:14
Per Svedensten4-Nov-04 23:14 

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.