Click here to Skip to main content
15,929,218 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Why not granting the application a member of type this class?

The destructor will destroy all the statically declared variables. All the dynamically declared variables you have to excplicitely destroy in the destructor.

If the pointer you passed is pointing to some object allocated on the stack, then the pointer will be invalid as soon as the object is out of scope.

If you want the object to be "alive" when it is out of scope, you have to allocate it on the heap (using calloc, malloc (C) or new (C++))
This way the data will reside in memory untill you explicitly call delete on the pointer.

Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
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 
Generalserial com port transmission Pin
jetournier7-Jun-04 5:27
jetournier7-Jun-04 5:27 
Generallinking managed dll to standard c++ Pin
Emiliano7-Jun-04 5:24
Emiliano7-Jun-04 5:24 

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.