Click here to Skip to main content
16,013,489 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to set an event multiple times in multithreading Pin
Bhikshapathi Gorantla2-Apr-02 19:30
Bhikshapathi Gorantla2-Apr-02 19:30 
GeneralRe: How to set an event multiple times in multithreading Pin
Neville Franks2-Apr-02 20:05
Neville Franks2-Apr-02 20:05 
GeneralRe: How to set an event multiple times in multithreading Pin
Joaquín M López Muñoz2-Apr-02 20:28
Joaquín M López Muñoz2-Apr-02 20:28 
QuestionSTL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 1:10
vmaltsev2-Apr-02 1:10 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Giles2-Apr-02 1:16
Giles2-Apr-02 1:16 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz2-Apr-02 2:15
Joaquín M López Muñoz2-Apr-02 2:15 
AnswerRe: STL::map, how to prevent use of temporary object? Pin
Christian Graus2-Apr-02 9:35
protectorChristian Graus2-Apr-02 9:35 
GeneralRe: STL::map, how to prevent use of temporary object? Pin
vmaltsev2-Apr-02 23:03
vmaltsev2-Apr-02 23:03 
If I use map[key] = myClassObj1 then result is even more weird.

1. myClassObj2 is created by default constructor (constructor without arguments)
2. myClassObj3 is created by copy constructor from myClassObj2
3. myClassObj4 is created by copy constructor from myClassObj3
4. myClassObj3 is destroyed
5. myClassObj2 is destroyed
6. myClassObj4 call operator= myClassObj1

Hmmm... It's too much for me... Smile | :)

As Joaquín mentioned, there isn't simple way to prevent temporary object. But I have to, because I have collection of collections, so duplication of object will cost me too much. I think there is only one way to do it and it is creation of my own container.

Anyway, thanks a lot for all your answers, gents.

Life is good but it's better to live good.
GeneralRe: STL::map, how to prevent use of temporary object? Pin
Joaquín M López Muñoz3-Apr-02 7:35
Joaquín M López Muñoz3-Apr-02 7:35 
GeneralConverts TCHAR to Managed String Pin
Ignacio Varas2-Apr-02 0:03
Ignacio Varas2-Apr-02 0:03 
GeneralRe: Converts TCHAR to Managed String Pin
2-Apr-02 2:31
suss2-Apr-02 2:31 
GeneralRe: Converts TCHAR to Managed String Pin
Le centriste2-Apr-02 6:44
Le centriste2-Apr-02 6:44 
GeneralRe: Converts TCHAR to Managed String Pin
Tim Smith2-Apr-02 7:28
Tim Smith2-Apr-02 7:28 
Questionhow to Maximize control ? Pin
2-Apr-02 0:01
suss2-Apr-02 0:01 
AnswerRe: how to Maximize control ? Pin
2-Apr-02 1:06
suss2-Apr-02 1:06 
QuestionHow can I retrieve the documents icon? Pin
AmarB2-Apr-02 0:02
AmarB2-Apr-02 0:02 
AnswerRe: How can I retrieve the documents icon? Pin
Mukkie2-Apr-02 5:25
Mukkie2-Apr-02 5:25 
GeneralToolbar in ActiveX control Pin
Tzoockee1-Apr-02 23:44
Tzoockee1-Apr-02 23:44 
GeneralRe: Toolbar in ActiveX control Pin
KaЯl2-Apr-02 4:44
KaЯl2-Apr-02 4:44 
GeneralMessage Removed Pin
1-Apr-02 22:42
suss1-Apr-02 22:42 
GeneralRe: Strings and strange characters Pin
Joaquín M López Muñoz1-Apr-02 22:44
Joaquín M López Muñoz1-Apr-02 22:44 
GeneralRe: Strings and strange characters Pin
1-Apr-02 23:51
suss1-Apr-02 23:51 
GeneralRe: Strings and strange characters Pin
Michael Dunn2-Apr-02 4:46
sitebuilderMichael Dunn2-Apr-02 4:46 
GeneralStrings and strange characters Pin
1-Apr-02 22:37
suss1-Apr-02 22:37 
GeneralOups sorry, bad post !! Pin
1-Apr-02 22:47
suss1-Apr-02 22:47 

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.