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

C / C++ / MFC

 
GeneralRe: CreateThread and Hooks Pin
Spiritofamerica7-Jun-04 19:48
Spiritofamerica7-Jun-04 19:48 
GeneralHtml Context Help in CView Pin
MikeF_7-Jun-04 7:06
MikeF_7-Jun-04 7:06 
GeneralExpert's opinions pz Pin
peachieboy7-Jun-04 7:06
peachieboy7-Jun-04 7:06 
GeneralRe: Expert's opinions pz Pin
David Crow7-Jun-04 7:14
David Crow7-Jun-04 7:14 
GeneralRe: Expert's opinions pz Pin
Henry miller7-Jun-04 10:00
Henry miller7-Jun-04 10:00 
GeneralClass Question Pin
Tom Wright7-Jun-04 7:01
Tom Wright7-Jun-04 7:01 
GeneralRe: Class Question Pin
David Crow7-Jun-04 7:11
David Crow7-Jun-04 7:11 
GeneralRe: Class Question Pin
Tom Wright7-Jun-04 7:25
Tom Wright7-Jun-04 7:25 
DavidCrow wrote:
Does the "main app" own an instance of the class?

Yes...ah...What do you mean? This class is a generic class that has no base class to it. It is part of my main app.


DavidCrow wrote:
The destructor will be called when the object goes out of scope, or when delete is called on the object.

Okay. I understand that. So if the class has never been destroyed by my call app...by using the delete function (or goes out of scope)then any data that is in any memory variable in my called class will still reside there...right?


DavidCrow wrote:
We'd be in a world of hurt if passing pointers caused destructors to be called.

Sorry I did not phrase that right. I'm assuming that the destructor destroys that memory variable...but like you said above it will not destroy that pointer until the object is out of scope or deleted.

Can you give an example of when an object is out of scope? And is passing data this way a high risk for memory leaks or buffer overruns?

Thanks

Tom Wright
tawright915@yahoo.com
GeneralRe: Class Question Pin
David Crow7-Jun-04 7:43
David Crow7-Jun-04 7:43 
GeneralRe: Class Question Pin
jmkhael7-Jun-04 7:19
jmkhael7-Jun-04 7:19 
GeneralRe: Class Question Pin
Tom Wright7-Jun-04 7:54
Tom Wright7-Jun-04 7:54 
GeneralRe: Class Question Pin
David Crow7-Jun-04 9:04
David Crow7-Jun-04 9:04 
GeneralGetting what's been clicked on a listbox Pin
kfaday7-Jun-04 6:33
kfaday7-Jun-04 6:33 
GeneralRe: Getting what's been clicked on a listbox Pin
David Crow7-Jun-04 7:08
David Crow7-Jun-04 7:08 
GeneralRe: Getting what's been clicked on a listbox Pin
kfaday7-Jun-04 8:34
kfaday7-Jun-04 8:34 
GeneralCreate and Modify a CHM file Pin
Tcpip20057-Jun-04 6:23
Tcpip20057-Jun-04 6:23 
GeneralRe: Create and Modify a CHM file Pin
Ravi Bhavnani7-Jun-04 7:30
professionalRavi Bhavnani7-Jun-04 7:30 
GeneralClicking on a bitmap Pin
kfaday7-Jun-04 6:08
kfaday7-Jun-04 6:08 
GeneralRe: Clicking on a bitmap Pin
Johan Rosengren7-Jun-04 6:13
Johan Rosengren7-Jun-04 6:13 
GeneralRe: Clicking on a bitmap Pin
kfaday7-Jun-04 6:15
kfaday7-Jun-04 6:15 
GeneralRe: Clicking on a bitmap Pin
Johan Rosengren7-Jun-04 6:29
Johan Rosengren7-Jun-04 6:29 
GeneralRe: Clicking on a bitmap Pin
kfaday7-Jun-04 6:37
kfaday7-Jun-04 6:37 
QuestionHow to create reset button Pin
syasya7-Jun-04 5:59
syasya7-Jun-04 5:59 
AnswerRe: How to create reset button Pin
Johan Rosengren7-Jun-04 6:15
Johan Rosengren7-Jun-04 6:15 
GeneralProblem with Threads dialog box Pin
LasVegasGuy7-Jun-04 5:29
LasVegasGuy7-Jun-04 5:29 

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.