Click here to Skip to main content
15,907,326 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: "Changing Editbox color" Pin
ThatsAlok15-Mar-07 0:32
ThatsAlok15-Mar-07 0:32 
AnswerRe: "Changing Editbox color" Pin
prasad_som15-Mar-07 2:15
prasad_som15-Mar-07 2:15 
QuestionI need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh13-Mar-07 20:15
G Haranadh13-Mar-07 20:15 
AnswerRe: I need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh13-Mar-07 23:11
G Haranadh13-Mar-07 23:11 
GeneralRe: I need to check the mail id is valid or not (existed or not) and whether password is correct or not? Pin
G Haranadh14-Mar-07 7:01
G Haranadh14-Mar-07 7:01 
QuestionCString: Heap Vs Stack? Pin
devvvy13-Mar-07 19:52
devvvy13-Mar-07 19:52 
AnswerRe: CString: Heap Vs Stack? Pin
Michael Dunn13-Mar-07 20:05
sitebuilderMichael Dunn13-Mar-07 20:05 
AnswerRe: CString: Heap Vs Stack? Pin
prasad_som13-Mar-07 21:18
prasad_som13-Mar-07 21:18 
devvvy wrote:
Does CString allocate memory on the heap or on the stack


CString uses heap to create char array.


devvvy wrote:
CString strNewString; << Local variable declared on Stack but seems like it allocates on heap since it can be called from "Main".

strNewString = strOriginal.Mid(2);
oList.AddTail(strNewString);

Actually, CString class uses class CStringData, which keeps tack of this buffer using reference counting.
In this case AddTail cause to increase refernce count by 1, thats why buffer contained in strNewString will not be destroyed even though object goes out of scope.






Questioncancel dialog Pin
deeps_cute13-Mar-07 19:17
deeps_cute13-Mar-07 19:17 
AnswerRe: cancel dialog Pin
Parthi_Appu13-Mar-07 19:23
Parthi_Appu13-Mar-07 19:23 
GeneralRe: cancel dialog -- ok then how Pin
deeps_cute13-Mar-07 21:22
deeps_cute13-Mar-07 21:22 
AnswerRe: cancel dialog -- ok then how Pin
Parthi_Appu13-Mar-07 21:30
Parthi_Appu13-Mar-07 21:30 
GeneralRe: cancel dialog -- ok then how Pin
deeps_cute13-Mar-07 21:37
deeps_cute13-Mar-07 21:37 
GeneralRe: cancel dialog -- ok then how Pin
Parthi_Appu13-Mar-07 21:46
Parthi_Appu13-Mar-07 21:46 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 21:54
deeps_cute13-Mar-07 21:54 
GeneralRe: cancel dialog Pin
Parthi_Appu13-Mar-07 21:57
Parthi_Appu13-Mar-07 21:57 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 23:06
deeps_cute13-Mar-07 23:06 
GeneralRe: cancel dialog Pin
Parthi_Appu13-Mar-07 23:45
Parthi_Appu13-Mar-07 23:45 
GeneralRe: cancel dialog Pin
deeps_cute13-Mar-07 23:58
deeps_cute13-Mar-07 23:58 
GeneralRe: cancel dialog Pin
Parthi_Appu14-Mar-07 0:16
Parthi_Appu14-Mar-07 0:16 
GeneralRe: cancel dialog Pin
deeps_cute14-Mar-07 0:38
deeps_cute14-Mar-07 0:38 
GeneralRe: cancel dialog Pin
Parthi_Appu14-Mar-07 0:59
Parthi_Appu14-Mar-07 0:59 
Generalthe problem is Pin
deeps_cute14-Mar-07 1:50
deeps_cute14-Mar-07 1:50 
GeneralRe: the problem is Pin
Parthi_Appu14-Mar-07 2:09
Parthi_Appu14-Mar-07 2:09 
GeneralRe: the problem is Pin
deeps_cute14-Mar-07 4:05
deeps_cute14-Mar-07 4:05 

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.