Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how do i hendel a function when a key is press'd Pin
Michael Dunn18-Jan-04 16:28
sitebuilderMichael Dunn18-Jan-04 16:28 
Generalfile x-fer help required Pin
Anonymous18-Jan-04 12:17
Anonymous18-Jan-04 12:17 
QuestionOk, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 11:58
Senkwe Chanda18-Jan-04 11:58 
AnswerRe: Ok, so when is a variable defined? Pin
Gary R. Wheeler18-Jan-04 12:13
Gary R. Wheeler18-Jan-04 12:13 
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 13:01
Senkwe Chanda18-Jan-04 13:01 
GeneralRe: Ok, so when is a variable defined? Pin
Gary R. Wheeler18-Jan-04 15:16
Gary R. Wheeler18-Jan-04 15:16 
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda18-Jan-04 17:12
Senkwe Chanda18-Jan-04 17:12 
AnswerRe: Ok, so when is a variable defined? Pin
Mike Dimmick18-Jan-04 23:34
Mike Dimmick18-Jan-04 23:34 
From the compiler documentation, /RTC switch:

[quote]
/RTCu

Reports when a variable is used without having been initialized. For example, an instruction that generates C4701 may also generate a run-time error under /RTCu. Any instruction that generates C4700 will generate a run-time error under /RTCu.

However, consider the following code fragment:

int a, *b, c;
if ( 1 )
b = &a;
c = a; // no run-time error with /RTCu

If a variable could have been initialized, it will not be reported at run time by /RTCu. For example, after a variable is aliased through a pointer, the compiler will not track the variable and report uninitialized uses. In effect, you can initialize a variable by taking its address. The & operator works like an assignment operator in this situation.
[/quote]

[edit] Made attribution clearer. [/edit]
GeneralRe: Ok, so when is a variable defined? Pin
Senkwe Chanda19-Jan-04 4:42
Senkwe Chanda19-Jan-04 4:42 
GeneralA Discrete Mathematic problem. Pin
MaJr18-Jan-04 11:36
MaJr18-Jan-04 11:36 
GeneralRe: A Discrete Mathematic problem. Pin
Alexander M.,19-Jan-04 2:14
Alexander M.,19-Jan-04 2:14 
GeneralPopup menu pops up in wrong place Pin
Daniel132418-Jan-04 11:18
Daniel132418-Jan-04 11:18 
GeneralRe: Popup menu pops up in wrong place Pin
PJ Arends18-Jan-04 16:31
professionalPJ Arends18-Jan-04 16:31 
GeneralRe: Popup menu pops up in wrong place Pin
Michael Dunn18-Jan-04 16:31
sitebuilderMichael Dunn18-Jan-04 16:31 
GeneralRe: Popup menu pops up in wrong place Pin
Roger Allen18-Jan-04 23:51
Roger Allen18-Jan-04 23:51 
GeneralRe: Popup menu pops up in wrong place Pin
Daniel132419-Jan-04 0:51
Daniel132419-Jan-04 0:51 
GeneralRe: Popup menu pops up in wrong place Pin
фил21-Jan-04 4:50
фил21-Jan-04 4:50 
GeneralSetWaitableTimer Pin
Mikey_E18-Jan-04 10:23
professionalMikey_E18-Jan-04 10:23 
GeneralRe: SetWaitableTimer Pin
Mike Dimmick18-Jan-04 23:39
Mike Dimmick18-Jan-04 23:39 
GeneralRe: SetWaitableTimer Pin
Mikey_E19-Jan-04 10:17
professionalMikey_E19-Jan-04 10:17 
GeneralRe: CSleeperThread Pin
Clem8628-Mar-08 2:45
Clem8628-Mar-08 2:45 
QuestionCan My Window Receive Messages Pin
bitpusher18-Jan-04 9:40
bitpusher18-Jan-04 9:40 
Generalstructs Pin
[Anders]18-Jan-04 8:53
[Anders]18-Jan-04 8:53 
GeneralRe: structs Pin
markkuk18-Jan-04 10:18
markkuk18-Jan-04 10:18 
GeneralRe: structs Pin
[Anders]18-Jan-04 11:23
[Anders]18-Jan-04 11:23 

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.