Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I customize the standard property sheet buttons Pin
si_6929-Apr-08 7:52
si_6929-Apr-08 7:52 
AnswerRe: How do I customize the standard property sheet buttons Pin
David Crow29-Apr-08 8:12
David Crow29-Apr-08 8:12 
AnswerRe: How do I customize the standard property sheet buttons Pin
Hamid_RT29-Apr-08 21:52
Hamid_RT29-Apr-08 21:52 
GeneralDynamically Creating Objects Pin
codeinelogic29-Apr-08 6:09
codeinelogic29-Apr-08 6:09 
QuestionRe: Dynamically Creating Objects Pin
David Crow29-Apr-08 7:29
David Crow29-Apr-08 7:29 
QuestionMFC dosen't care about code quality? Pin
Naveen29-Apr-08 4:16
Naveen29-Apr-08 4:16 
AnswerRe: MFC dosen't care about code quality? Pin
David Crow29-Apr-08 4:32
David Crow29-Apr-08 4:32 
GeneralRe: MFC dosen't care about code quality? Pin
Naveen29-Apr-08 4:44
Naveen29-Apr-08 4:44 
It is actually a microsft press release book Smile | :) . Programming vc++ by David Kruglinski. And the reason is

if you are writing some code like

const char g_pch[] = "test";

the g_pch get stored in the .rdata section of the code. This section hold initialized readonly data. The more stuff you put in the .rdata section, the better because even multpile copy of application is running, no need to create seperate page file.

If you wrote like

const CString g_str("this is the worst thing I can do");

Now you've got the CString object (which is quite small) in the .bss section, and you've also got a character array in the .data section, neither of which can be backed by the EXE file. To make matters worse, when the program starts, the CString class must allocate heap memory for a copy of the characters. You would be much better off using a const character array instead of a CString object.


AnswerRe: MFC dosen't care about code quality? Pin
toxcct29-Apr-08 5:08
toxcct29-Apr-08 5:08 
GeneralRe: MFC dosen't care about code quality? Pin
Naveen29-Apr-08 5:23
Naveen29-Apr-08 5:23 
GeneralRe: MFC dosen't care about code quality? Pin
toxcct29-Apr-08 5:30
toxcct29-Apr-08 5:30 
AnswerRe: MFC dosen't care about code quality? PinPopular
Randor 29-Apr-08 5:51
professional Randor 29-Apr-08 5:51 
GeneralRe: MFC dosen't care about code quality? Pin
BadKarma29-Apr-08 21:16
BadKarma29-Apr-08 21:16 
QuestionRe: MFC dosen't care about code quality? Pin
bob1697229-Apr-08 21:47
bob1697229-Apr-08 21:47 
QuestionImplementation of gmtime( ) in Windows mobile Pin
Mohanraj D29-Apr-08 2:17
Mohanraj D29-Apr-08 2:17 
QuestionRe: Implementation of gmtime( ) in Windows mobile Pin
David Crow29-Apr-08 3:06
David Crow29-Apr-08 3:06 
QuestionVC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:02
lgatcodeproject29-Apr-08 0:02 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:14
mveCPallini29-Apr-08 0:14 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:29
lgatcodeproject29-Apr-08 0:29 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:38
mveCPallini29-Apr-08 0:38 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:50
lgatcodeproject29-Apr-08 0:50 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 1:02
mveCPallini29-Apr-08 1:02 
QuestionWhich type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 22:55
zengkun10028-Apr-08 22:55 
AnswerRe: Which type of string do you use in VC++ project? Pin
Saurabh.Garg28-Apr-08 23:01
Saurabh.Garg28-Apr-08 23:01 
AnswerRe: Which type of string do you use in VC++ project? Pin
_AnsHUMAN_ 28-Apr-08 23:32
_AnsHUMAN_ 28-Apr-08 23:32 

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.