Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How much Memory my App uses? Pin
David Crow3-Jun-10 7:32
David Crow3-Jun-10 7:32 
GeneralRe: How much Memory my App uses? Pin
Nuri Ismail3-Jun-10 7:54
Nuri Ismail3-Jun-10 7:54 
GeneralRe: How much Memory my App uses? Pin
Software20073-Jun-10 9:56
Software20073-Jun-10 9:56 
GeneralRe: How much Memory my App uses? Pin
Nuri Ismail4-Jun-10 5:49
Nuri Ismail4-Jun-10 5:49 
Question(Probably a non-question) CString GetLength vs. IsEmpty ? Pin
Maximilien2-Jun-10 4:13
Maximilien2-Jun-10 4:13 
AnswerRe: (Probably a non-question) CString GetLength vs. IsEmpty ? Pin
Aescleal2-Jun-10 4:25
Aescleal2-Jun-10 4:25 
AnswerRe: (Probably a non-question) CString GetLength vs. IsEmpty ? Pin
David Crow2-Jun-10 5:52
David Crow2-Jun-10 5:52 
GeneralRe: (Probably a non-question) CString GetLength vs. IsEmpty ? Pin
Emilio Garavaglia2-Jun-10 7:15
Emilio Garavaglia2-Jun-10 7:15 
Saying if a text is empty and say how long a text is are two different concepts: the first is simpler (requires an immediate check) than the second (requires to count somehow the data).

So they have two distinct functions.

The fact that the actual implementation keeps track of the length as long as it changes, so that both methods take advantage by a same computation is an "implementation detail" that may vary in future releases.

!GetLength() is semantically the same as IsEmpty() but don't expect they will always do the same computation and result in the same performance.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: (Probably a non-question) CString GetLength vs. IsEmpty ? Pin
David Crow2-Jun-10 8:08
David Crow2-Jun-10 8:08 
GeneralRe: (Probably a non-question) CString GetLength vs. IsEmpty ? Pin
Emilio Garavaglia2-Jun-10 20:53
Emilio Garavaglia2-Jun-10 20:53 
QuestionInterview question Pin
AkashAg2-Jun-10 2:28
AkashAg2-Jun-10 2:28 
AnswerRe: Interview question Pin
Aescleal2-Jun-10 2:38
Aescleal2-Jun-10 2:38 
GeneralRe: Interview question Pin
AkashAg2-Jun-10 2:45
AkashAg2-Jun-10 2:45 
QuestionDllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 0:58
Schehaider_Aymen2-Jun-10 0:58 
AnswerRe: DllRegister Server Error 0x8007007e Pin
KarstenK2-Jun-10 2:40
mveKarstenK2-Jun-10 2:40 
GeneralRe: DllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 3:05
Schehaider_Aymen2-Jun-10 3:05 
GeneralRe: DllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 3:29
Schehaider_Aymen2-Jun-10 3:29 
GeneralRe: DllRegister Server Error 0x8007007e Pin
KarstenK2-Jun-10 3:34
mveKarstenK2-Jun-10 3:34 
GeneralRe: DllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 4:24
Schehaider_Aymen2-Jun-10 4:24 
GeneralRe: DllRegister Server Error 0x8007007e Pin
KarstenK2-Jun-10 4:33
mveKarstenK2-Jun-10 4:33 
GeneralRe: DllRegister Server Error 0x8007007e Pin
Code-o-mat2-Jun-10 4:30
Code-o-mat2-Jun-10 4:30 
GeneralRe: DllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 5:01
Schehaider_Aymen2-Jun-10 5:01 
AnswerRe: DllRegister Server Error 0x8007007e Pin
Schehaider_Aymen2-Jun-10 5:31
Schehaider_Aymen2-Jun-10 5:31 
Questionwin32 service crashing in vista Pin
Subrat Patnaik2-Jun-10 0:01
Subrat Patnaik2-Jun-10 0:01 
AnswerRe: win32 service crashing in vista Pin
Aescleal2-Jun-10 0:41
Aescleal2-Jun-10 0:41 

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.