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

C / C++ / MFC

 
GeneralRe: how to program GUI for c in Visual C++? Pin
Debs30-Mar-03 22:55
Debs30-Mar-03 22:55 
GeneralGet image of toolbar button Pin
User 665830-Mar-03 6:02
User 665830-Mar-03 6:02 
GeneralRe: Get image of toolbar button Pin
User 665830-Mar-03 7:15
User 665830-Mar-03 7:15 
GeneralClearing a vector Pin
Makover30-Mar-03 4:41
Makover30-Mar-03 4:41 
GeneralRe: Clearing a vector Pin
Chris Losinger30-Mar-03 4:57
professionalChris Losinger30-Mar-03 4:57 
GeneralRe: Clearing a vector Pin
Makover30-Mar-03 5:18
Makover30-Mar-03 5:18 
GeneralRe: Clearing a vector Pin
Joaquín M López Muñoz30-Mar-03 5:35
Joaquín M López Muñoz30-Mar-03 5:35 
GeneralRe: Clearing a vector Pin
Chris Losinger30-Mar-03 5:37
professionalChris Losinger30-Mar-03 5:37 
Makover wrote:
when is its Dtor called?

when the containing object dies. if CFoo has a vector, the vector's d'tor is called as part of the CFoo d'tor.

Makover wrote:
Is it normal to have a constructor (which doesn't allocate any memory on the heap) and no destructor in a class?

constructors and destructors are totally optional. there's nothing wrong or unusual to not have one or the other (or both) in a class. if your class isn't responsible for any heap-allocated memory then you probably don't need a d'tor.

one exception to this is when you have a class where the d'tor performs some kind of useful side-effect: like CWaitCursor which show the hourglass cursor in the constructor then shows the normal cursor in the destructor.

-c



Image tools: ThumbNailer, Bobber, TIFFAssembler
GeneralRe: Clearing a vector Pin
Makover30-Mar-03 5:50
Makover30-Mar-03 5:50 
Generalfunction from dll Pin
_crs_30-Mar-03 4:41
_crs_30-Mar-03 4:41 
GeneralRe: function from dll Pin
valikac30-Mar-03 5:40
valikac30-Mar-03 5:40 
GeneralRe: function from dll Pin
codeant30-Mar-03 5:41
codeant30-Mar-03 5:41 
GeneralRe: function from dll Pin
_crs_30-Mar-03 6:57
_crs_30-Mar-03 6:57 
GeneralShow New Window Pin
zeki yugnak30-Mar-03 1:25
zeki yugnak30-Mar-03 1:25 
GeneralRe: Show New Window Pin
Brian Shifrin30-Mar-03 2:22
Brian Shifrin30-Mar-03 2:22 
GeneralRe: Show New Window Pin
Ravi Bhavnani30-Mar-03 2:46
professionalRavi Bhavnani30-Mar-03 2:46 
GeneralRe: Show New Window Pin
zeki yugnak30-Mar-03 3:30
zeki yugnak30-Mar-03 3:30 
QuestionWhere's the toolbar? Pin
Vikram A Punathambekar29-Mar-03 18:25
Vikram A Punathambekar29-Mar-03 18:25 
AnswerRe: Where's the toolbar? Pin
Jibesh29-Mar-03 19:12
professionalJibesh29-Mar-03 19:12 
GeneralRe: Where's the toolbar? Pin
Vikram A Punathambekar29-Mar-03 20:14
Vikram A Punathambekar29-Mar-03 20:14 
GeneralOpenGL Pin
73Zeppelin29-Mar-03 17:03
73Zeppelin29-Mar-03 17:03 
GeneralRe: OpenGL Pin
567890123429-Mar-03 22:21
567890123429-Mar-03 22:21 
GeneralRe: OpenGL Pin
Moak30-Mar-03 2:41
Moak30-Mar-03 2:41 
GeneralRe: OpenGL [modified] Pin
Per Söderlund7-Sep-10 21:44
Per Söderlund7-Sep-10 21:44 
QuestionHelp me...How to handler errors? Pin
_skidrow_vn_29-Mar-03 16:55
_skidrow_vn_29-Mar-03 16:55 

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.