Click here to Skip to main content
16,016,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ShellExecute() function opens a blank page Pin
venera_soft9-Jul-09 2:20
venera_soft9-Jul-09 2:20 
Questionpointers to class Pin
hrishiS9-Jul-09 1:02
hrishiS9-Jul-09 1:02 
QuestionRe: pointers to class Pin
Adam Roderick J9-Jul-09 1:14
Adam Roderick J9-Jul-09 1:14 
AnswerRe: pointers to class Pin
hrishiS9-Jul-09 1:26
hrishiS9-Jul-09 1:26 
GeneralRe: pointers to class Pin
Adam Roderick J9-Jul-09 1:37
Adam Roderick J9-Jul-09 1:37 
QuestionRe: pointers to class Pin
CPallini9-Jul-09 1:41
mveCPallini9-Jul-09 1:41 
AnswerRe: pointers to class Pin
«_Superman_»9-Jul-09 1:49
professional«_Superman_»9-Jul-09 1:49 
QuestionRAII / RIIA best-practices question about std::vector Pin
Mike the Red9-Jul-09 0:30
Mike the Red9-Jul-09 0:30 
So one of my (many) recent questions ellicited a link to Resource Acquisition Is Initialization[^]. The wikipedia entry made sense and it seemed like, in general, this structure would be a good idea.

So now I'm using std::vector for the first time since my RAII introduction, and I recall that vector<> leaks unless I call vector<>.clear() when I'm done with the vector.

Does that mean, considering RAII, that whenever I want to use std::vector the best-practice method would be to write a specialized container class that calls .clear() in the destructor and exposes all the std::vector methods?

Now that I think of it, the container could be written as a template class.... but I'm going to let the question stand, since I'm just learning about RAII...

Is this an exception to the rule, or would a container class be best?

A thousand praises to all those who exhibit patience with the noob!

MZR
AnswerRe: RAII / RIIA best-practices question about std::vector Pin
Stuart Dootson9-Jul-09 2:06
professionalStuart Dootson9-Jul-09 2:06 
QuestionSo, that means.... Pin
Mike the Red9-Jul-09 2:23
Mike the Red9-Jul-09 2:23 
AnswerRe: Fair 'nuff, but, if vector deallocates, can you see why this leaks: Pin
Stuart Dootson9-Jul-09 2:25
professionalStuart Dootson9-Jul-09 2:25 
Jokeheh.. beat my edit by 2 minutes ; P &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -nt- Pin
Mike the Red9-Jul-09 2:33
Mike the Red9-Jul-09 2:33 
GeneralRe: heh.. beat my edit by 2 minutes ; P &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -nt- Pin
Stuart Dootson9-Jul-09 2:36
professionalStuart Dootson9-Jul-09 2:36 
Questioncolored tabcontrol for smartphone Pin
emre079-Jul-09 0:24
emre079-Jul-09 0:24 
QuestionHow to read 'MODIFY' File/Folder permission Pin
sumd9-Jul-09 0:06
sumd9-Jul-09 0:06 
AnswerRe: How to read 'MODIFY' File/Folder permission Pin
Adam Roderick J9-Jul-09 0:42
Adam Roderick J9-Jul-09 0:42 
GeneralRe: How to read 'MODIFY' File/Folder permission Pin
sumd9-Jul-09 2:12
sumd9-Jul-09 2:12 
GeneralRe: How to read 'MODIFY' File/Folder permission Pin
Adam Roderick J9-Jul-09 2:45
Adam Roderick J9-Jul-09 2:45 
GeneralRe: How to read 'MODIFY' File/Folder permission Pin
David Crow9-Jul-09 2:54
David Crow9-Jul-09 2:54 
AnswerRe: How to read 'MODIFY' File/Folder permission Pin
David Crow9-Jul-09 2:51
David Crow9-Jul-09 2:51 
Question[Message Deleted] Pin
alpha.gis20088-Jul-09 23:59
alpha.gis20088-Jul-09 23:59 
AnswerRe: looking for VC++ GPS application Pin
Chandrasekharan P9-Jul-09 0:06
Chandrasekharan P9-Jul-09 0:06 
Questionremoving menu in MFC document\view architecture Pin
AmitCohen2228-Jul-09 22:45
AmitCohen2228-Jul-09 22:45 
AnswerRe: removing menu in MFC document\view architecture Pin
Adam Roderick J8-Jul-09 22:55
Adam Roderick J8-Jul-09 22:55 
Questionunicode character problem Pin
Rakesh58-Jul-09 22:12
Rakesh58-Jul-09 22:12 

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.