Click here to Skip to main content
15,918,624 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Trying to Put HWND Value Into String Pin
Jörgen Sigvardsson4-Jul-06 23:04
Jörgen Sigvardsson4-Jul-06 23:04 
GeneralRe: Trying to Put HWND Value Into String [modified] Pin
Eytukan5-Jul-06 4:17
Eytukan5-Jul-06 4:17 
GeneralRe: Trying to Put HWND Value Into String [modified] Pin
Mattias G5-Jul-06 12:58
Mattias G5-Jul-06 12:58 
AnswerRe: Trying to Put HWND Value Into String Pin
Eytukan4-Jul-06 21:36
Eytukan4-Jul-06 21:36 
GeneralRe: Trying to Put HWND Value Into String Pin
Eytukan4-Jul-06 21:38
Eytukan4-Jul-06 21:38 
GeneralRe: Trying to Put HWND Value Into String Pin
Michael Dunn5-Jul-06 7:34
sitebuilderMichael Dunn5-Jul-06 7:34 
QuestionSmart Pointer and STL Container Pin
Greg Yeung2-Jul-06 22:20
Greg Yeung2-Jul-06 22:20 
AnswerRe: Smart Pointer and STL Container Pin
Stuart Dootson3-Jul-06 2:00
professionalStuart Dootson3-Jul-06 2:00 
I suspect it might be this method, in the case when rhs._content == this->_content:

 ReferenceObject& operator=(const ReferenceObject& rhs) {
// _content is pointed to old content
if (_content != NULL) _content->decCount();
_content = rhs._content;
// _content is pointed to rhs._content now
if (_content != NULL) _content->incCount();
}


Try this instead - it copes when rhs._content == _content:

 ReferenceObject& operator=(const ReferenceObject& rhs) {
// Do nothing if both references are to the same shared content
if (_content != rhs._content)
{
   // _content is pointed to old content
   if (_content != NULL) _content->decCount();
   _content = rhs._content;
   // _content is pointed to rhs._content now
   if (_content != NULL) _content->incCount();
}
}

GeneralRe: Smart Pointer and STL Container Pin
Greg Yeung3-Jul-06 16:57
Greg Yeung3-Jul-06 16:57 
QuestionWindows application with Infragistics controls [modified] Pin
DeloreanMag30-Jun-06 19:37
DeloreanMag30-Jun-06 19:37 
Questionstd::map issue Pin
f229-Jun-06 20:35
f229-Jun-06 20:35 
AnswerRe: std::map issue [modified] Pin
valikac30-Jun-06 7:03
valikac30-Jun-06 7:03 
GeneralRe: std::map issue (solved) bug in xtree Pin
f230-Jun-06 8:39
f230-Jun-06 8:39 
AnswerRe: std::map issue Pin
Stephen Hewitt1-Jul-06 3:39
Stephen Hewitt1-Jul-06 3:39 
GeneralRe: std::map issue Pin
f21-Jul-06 4:49
f21-Jul-06 4:49 
QuestionA General Window Question Pin
HakunaMatada28-Jun-06 21:25
HakunaMatada28-Jun-06 21:25 
AnswerRe: A General Window Question Pin
Justin Tay28-Jun-06 23:40
Justin Tay28-Jun-06 23:40 
GeneralRe: A General Window Question Pin
HakunaMatada29-Jun-06 0:32
HakunaMatada29-Jun-06 0:32 
QuestionMultithreading Pin
shivditya27-Jun-06 21:51
shivditya27-Jun-06 21:51 
QuestionHow to capture the WM_ONVSCROLL message and then do something in WTL [modified] Pin
wanilyer27-Jun-06 15:02
wanilyer27-Jun-06 15:02 
AnswerRe: How to capture the WM_ONVSCROLL message and then do something in WTL Pin
Justin Tay27-Jun-06 18:18
Justin Tay27-Jun-06 18:18 
GeneralRe: How to capture the WM_ONVSCROLL message and then do something in WTL Pin
wanilyer27-Jun-06 18:49
wanilyer27-Jun-06 18:49 
Questiondata not being inserted/updated Pin
ratish mr27-Jun-06 1:47
ratish mr27-Jun-06 1:47 
AnswerRe: data not being inserted/updated [modified] Pin
Kurt _B27-Jun-06 2:59
Kurt _B27-Jun-06 2:59 
QuestionAtl executable without Interface Pin
ROWALI21-Jun-06 18:29
ROWALI21-Jun-06 18:29 

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.