Click here to Skip to main content
15,888,454 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: fopen problem in ATL Pin
_tasleem12-Sep-06 23:58
_tasleem12-Sep-06 23:58 
QuestionAllow placement on my control in design-time Pin
Tilir7-Sep-06 20:08
Tilir7-Sep-06 20:08 
QuestionProblem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
x-b7-Sep-06 0:41
x-b7-Sep-06 0:41 
AnswerRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
Michael Dunn9-Sep-06 17:31
sitebuilderMichael Dunn9-Sep-06 17:31 
GeneralRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
x-b10-Sep-06 22:34
x-b10-Sep-06 22:34 
GeneralRe: Problem: WTL::CString exchange between pure WTL DLLs (note: no MFC intermixing) Pin
Michael Dunn11-Sep-06 7:28
sitebuilderMichael Dunn11-Sep-06 7:28 
QuestionSTL List - object creation / destruction wierdness Pin
neilsolent6-Sep-06 21:39
neilsolent6-Sep-06 21:39 
AnswerRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson7-Sep-06 9:05
professionalStuart Dootson7-Sep-06 9:05 
If you add monitoring of the copy constructor, you'll find the missing constructions...

#include <iostream>
#include <list>

using namespace std;

class test
{
   public:
   int m_i;

   test(int i = 0)
   {
   m_i = i;
   cout << "test object with m_i=" << m_i << " being constructed" << endl;
   };

   test(test const& t) : m_i(t.m_i)
   {
   cout << "test object with m_i=" << m_i << " being copy constructed" << endl;
   };

   test& operator=(test const& t)
   {
      m_i = t.m_i;return *this;
   cout << "test object with m_i=" << m_i << " being copy constructed" << endl;
   };

   ~test()
   {
   cout << "test object with m_i=" << m_i << " being deleted" << endl;
   };
};

typedef list<test> TESTLIST;

int main(int argc, char* argv[])
{
   TESTLIST myTestList;
   myTestList.push_front(1);
   myTestList.push_front(2);

   return 0;
}


gives

test object with m_i=1 being constructed
test object with m_i=1 being copy constructed
test object with m_i=1 being deleted
test object with m_i=2 being constructed
test object with m_i=2 being copy constructed
test object with m_i=2 being deleted
test object with m_i=2 being deleted
test object with m_i=1 being deleted

AnswerRe: STL List - object creation / destruction wierdness Pin
Zac Howland7-Sep-06 9:23
Zac Howland7-Sep-06 9:23 
GeneralRe: STL List - object creation / destruction wierdness Pin
neilsolent7-Sep-06 9:49
neilsolent7-Sep-06 9:49 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland7-Sep-06 11:03
Zac Howland7-Sep-06 11:03 
GeneralRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson8-Sep-06 3:01
professionalStuart Dootson8-Sep-06 3:01 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland8-Sep-06 3:57
Zac Howland8-Sep-06 3:57 
GeneralRe: STL List - object creation / destruction wierdness Pin
Stuart Dootson8-Sep-06 5:48
professionalStuart Dootson8-Sep-06 5:48 
GeneralRe: STL List - object creation / destruction wierdness Pin
Zac Howland8-Sep-06 6:06
Zac Howland8-Sep-06 6:06 
QuestionRelease build seg faults at vector push_back Pin
rana745-Sep-06 6:38
rana745-Sep-06 6:38 
AnswerRe: Release build seg faults at vector push_back Pin
led mike5-Sep-06 6:55
led mike5-Sep-06 6:55 
AnswerRe: Release build seg faults at vector push_back Pin
valikac5-Sep-06 8:12
valikac5-Sep-06 8:12 
AnswerRe: Release build seg faults at vector push_back Pin
Zac Howland7-Sep-06 9:27
Zac Howland7-Sep-06 9:27 
QuestionIs it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
peysock5-Sep-06 6:35
peysock5-Sep-06 6:35 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Kevin McFarlane6-Sep-06 5:17
Kevin McFarlane6-Sep-06 5:17 
AnswerRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
Zac Howland7-Sep-06 9:31
Zac Howland7-Sep-06 9:31 
GeneralRe: Is it possible to convert Visual C++ program with GUI into COM DLL or ActiveX ? Pin
peysock8-Sep-06 3:34
peysock8-Sep-06 3:34 
Questioniterator problem in release builds Pin
rana745-Sep-06 1:24
rana745-Sep-06 1:24 
QuestionRe: iterator problem in release builds Pin
prasad_som5-Sep-06 1:54
prasad_som5-Sep-06 1:54 

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.