Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to program GUI for c in Visual C++? Pin
Christian Graus30-Mar-03 10:35
protectorChristian Graus30-Mar-03 10:35 
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 
About the vector which is a member variable of the class - when is its Dtor called? My guess is when the object "dies" but i'm still not sure.

vector dtor is called as part of your class dtor (the compiler automatically handles this). So, yes, the vector is destroyed when the owner object dies.

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

It is pefectly normal, specially if all members take care of their own cleanup. Remember that your class never lacks a dtor: if you don't provide one the compiler generates it automatically, and will call appropriate dtors for member objects and base classes.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Clearing a vector Pin
Chris Losinger30-Mar-03 5:37
professionalChris Losinger30-Mar-03 5:37 
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 

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.