Click here to Skip to main content
15,915,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreateProcess() method Pin
Madan Chauhan26-Aug-08 20:02
Madan Chauhan26-Aug-08 20:02 
AnswerRe: CreateProcess() method Pin
Nibu babu thomas26-Aug-08 20:08
Nibu babu thomas26-Aug-08 20:08 
AnswerRe: CreateProcess() method Pin
Jijo.Raj26-Aug-08 20:30
Jijo.Raj26-Aug-08 20:30 
Question[Message Deleted] Pin
ptr_Electron26-Aug-08 19:16
ptr_Electron26-Aug-08 19:16 
AnswerRe: Application crash before the window is displayed Pin
Nibu babu thomas26-Aug-08 19:36
Nibu babu thomas26-Aug-08 19:36 
QuestionRich Edit control Highlight selection color problem Pin
riteshsv26-Aug-08 19:13
riteshsv26-Aug-08 19:13 
QuestionSTL map issue Pin
George_George26-Aug-08 17:31
George_George26-Aug-08 17:31 
AnswerRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:11
Nibu babu thomas26-Aug-08 19:11 
George_George wrote:
My question is about how many instances' copies are made when inserting new elements into map. Here is my code and questions.


You can simply test this by putting a simple custom class into a map that has a copy constructor and an assignment operator and keep a counter as a member.

Increment the counter in copy constructor/assignment operator. "Also don't forget to copy or assign the counter else you will lose the counter value." Print out this counter to check counter value. You can give an instance a unique name to differentiate between different instances. May be write a small test app!

Or else you can debug through and find.


Nibu babu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

GeneralRe: STL map issue Pin
George_George26-Aug-08 19:41
George_George26-Aug-08 19:41 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 19:58
Nibu babu thomas26-Aug-08 19:58 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:26
George_George26-Aug-08 23:26 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:32
Nibu babu thomas26-Aug-08 23:32 
GeneralRe: STL map issue Pin
George_George26-Aug-08 23:34
George_George26-Aug-08 23:34 
GeneralRe: STL map issue Pin
Nibu babu thomas26-Aug-08 23:50
Nibu babu thomas26-Aug-08 23:50 
GeneralRe: STL map issue Pin
George_George27-Aug-08 1:58
George_George27-Aug-08 1:58 
QuestionRPC Client Pin
sunny_vc26-Aug-08 15:44
sunny_vc26-Aug-08 15:44 
AnswerRe: RPC Client Pin
Garth J Lancaster26-Aug-08 17:00
professionalGarth J Lancaster26-Aug-08 17:00 
GeneralRe: RPC Client Pin
sunny_vc27-Aug-08 21:25
sunny_vc27-Aug-08 21:25 
QuestionLimit for vector????? Pin
TooShy2Talk26-Aug-08 15:29
TooShy2Talk26-Aug-08 15:29 
AnswerRe: Limit for vector????? Pin
Nibu babu thomas26-Aug-08 19:06
Nibu babu thomas26-Aug-08 19:06 
QuestionCMFCRibbonButton / CMFCRibbonBaseElement Pin
bigcivilmelon26-Aug-08 13:11
bigcivilmelon26-Aug-08 13:11 
QuestionNeed help to pass float or Double argument with _begintherad() Pin
smdhd26-Aug-08 12:41
smdhd26-Aug-08 12:41 
AnswerRe: Need help to pass float or Double argument with _begintherad() Pin
Rick York26-Aug-08 13:11
mveRick York26-Aug-08 13:11 
AnswerRe: Need help to pass float or Double argument with _begintherad() Pin
Mark Salsbery27-Aug-08 6:59
Mark Salsbery27-Aug-08 6:59 
QuestionMDIParent problems [modified] Pin
C# Beginner Nick26-Aug-08 10:37
C# Beginner Nick26-Aug-08 10:37 

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.