Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: resource leak in destructor? Pin
George_George9-Oct-08 18:09
George_George9-Oct-08 18:09 
QuestionRe: resource leak in destructor? Pin
CPallini9-Oct-08 22:05
mveCPallini9-Oct-08 22:05 
AnswerRe: resource leak in destructor? Pin
George_George9-Oct-08 22:19
George_George9-Oct-08 22:19 
AnswerRe: resource leak in destructor? Pin
led mike10-Oct-08 4:34
led mike10-Oct-08 4:34 
GeneralRe: resource leak in destructor? Pin
Mark Salsbery10-Oct-08 5:22
Mark Salsbery10-Oct-08 5:22 
GeneralRe: resource leak in destructor? Pin
led mike10-Oct-08 5:26
led mike10-Oct-08 5:26 
AnswerRe: resource leak in destructor? Pin
gscotti9-Oct-08 4:42
gscotti9-Oct-08 4:42 
GeneralRe: resource leak in destructor? Pin
George_George9-Oct-08 18:13
George_George9-Oct-08 18:13 
Thanks gscotti!


1.

"If possible, use references on arguments to functions and members of your class" -- could you show some code please? I want to learn your best practice, but I do not understand until I see some code. Smile | :)

2.

gscotti wrote:
Beware of your design. It is a very common practice to stack everything on "multi-purposed" classes. Every class has a purpose. If you stick with that in mind, probable your class will be split to several ones, and you'll find lots of issues.


Confused about your points above. Do you mean it is good practice to make a class big to contain a lot of stuff other than split?


regards,
George
QuestionCListCtrl:SetItemState hiding or disabling items? Pin
Cem Usta9-Oct-08 1:52
Cem Usta9-Oct-08 1:52 
AnswerRe: CListCtrl:SetItemState hiding or disabling items? Pin
CPallini9-Oct-08 2:09
mveCPallini9-Oct-08 2:09 
QuestionBug while compiling Pin
manustone9-Oct-08 1:11
manustone9-Oct-08 1:11 
AnswerRe: Bug while compiling Pin
Alan Balkany9-Oct-08 4:00
Alan Balkany9-Oct-08 4:00 
GeneralRe: Bug while compiling Pin
manustone9-Oct-08 5:25
manustone9-Oct-08 5:25 
QuestionIt still gives "Unknown Publisher" error even after signing ActiveX control Pin
dharmesh@krishtechnologies.net8-Oct-08 23:27
dharmesh@krishtechnologies.net8-Oct-08 23:27 
QuestionHow can Get Total Size of ListCtrl? Pin
Le@rner8-Oct-08 21:43
Le@rner8-Oct-08 21:43 
AnswerRe: How can Get Total Size of ListCtrl? Pin
Naveen8-Oct-08 21:58
Naveen8-Oct-08 21:58 
GeneralRe: How can Get Total Size of ListCtrl? Pin
Nishad S8-Oct-08 22:13
Nishad S8-Oct-08 22:13 
QuestionBlack Border around Dialog Box. Pin
gothic_coder8-Oct-08 21:09
gothic_coder8-Oct-08 21:09 
AnswerRe: Black Border around Dialog Box. Pin
Nishad S8-Oct-08 22:11
Nishad S8-Oct-08 22:11 
GeneralRe: Black Border around Dialog Box. Pin
gothic_coder8-Oct-08 23:07
gothic_coder8-Oct-08 23:07 
GeneralRe: Black Border around Dialog Box. Pin
Nishad S8-Oct-08 23:22
Nishad S8-Oct-08 23:22 
GeneralRe: Black Border around Dialog Box. [modified] Pin
gothic_coder8-Oct-08 23:29
gothic_coder8-Oct-08 23:29 
GeneralRe: Black Border around Dialog Box. Pin
Nishad S9-Oct-08 0:13
Nishad S9-Oct-08 0:13 
GeneralRe: Black Border around Dialog Box. Pin
gothic_coder9-Oct-08 0:29
gothic_coder9-Oct-08 0:29 
GeneralRe: Black Border around Dialog Box. Pin
Nishad S9-Oct-08 0:48
Nishad S9-Oct-08 0:48 

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.