Dear all, I have 2 constructors of the same class: CTest(){i = j = 0;}; CTest(int t){j = t;}; It is possible to call the first constructor in the second constructor? Of course, I can make an Initialize() method and I can call it in the both constructors. Thank you.
U
User 33952
@User 33952
Posts
-
How to call a constructor in another constructor -
How to return an object pointer from an ActiveX controlAn example is DataGrid control activex from microsoft. The control has a method or property GetColumns which return an reference to CColumns. How Microsoft do that? CColumns is not a control... I don't know what is it...
-
Thread Safe Linked ListI have a Linked list with the following functions: Add, Get, Delete. For thread safe implementation I use a CRITICAL_SECTION handle in each function and everything work well. The question is: How I can avoid use of CRITICAL_SECTION on Get function? Because Get function is called on many threads the performance is low, each thread wait the previous thread to finish Get. Add and Delete are called rarely. Thanks!