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

C / C++ / MFC

 
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 
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 
1. Most compilers don't support the export so you really need the definition of a template class in with it's declaration of you can't use the template class with arbitrary type parameters. The main impact of having everything in an h file is that it couples the class in the h file more tightly with your code. FREX if the implementation of std::vector changes everything that includes vector has to be recompiled. If export was supported you'd just need to compile vector.cpp and relink (and maybe do that intermediate step thing that EDG does when using exported templates) which would be a lot faster.

2. In addition to your comments the main problem is again dependencies. When you modify your class implementation (if it's all in an h file) you have to recompile ALL the source files that use that class. This can increase build times through the roof for a simple change.

Incidentally recursion would still be possible - a clever compiler could convert your inlined recursion into iteration.

Cheers,

Ash
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 
QuestionVS2010 - debug version compiles, release version does not Pin
Ed SHaw1-Jun-10 22:38
Ed SHaw1-Jun-10 22:38 
AnswerRe: VS2010 - debug version compiles, release version does not Pin
KarstenK2-Jun-10 0:23
mveKarstenK2-Jun-10 0:23 
GeneralRe: VS2010 - debug version compiles, release version does not Pin
wishmaster802-Jun-10 2:20
wishmaster802-Jun-10 2:20 
GeneralRe: VS2010 - debug version compiles, release version does not Pin
KarstenK2-Jun-10 2:36
mveKarstenK2-Jun-10 2:36 

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.