Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question on CEvent Pin
_Magnus_17-Feb-04 23:21
_Magnus_17-Feb-04 23:21 
GeneralRe: Question on CEvent Pin
DimpleSurana17-Feb-04 23:31
DimpleSurana17-Feb-04 23:31 
GeneralRe: Question on CEvent Pin
_Magnus_17-Feb-04 23:35
_Magnus_17-Feb-04 23:35 
GeneralRe: Question on CEvent Pin
DimpleSurana17-Feb-04 23:49
DimpleSurana17-Feb-04 23:49 
GeneralRe: Question on CEvent Pin
_Magnus_17-Feb-04 23:52
_Magnus_17-Feb-04 23:52 
GeneralRe: Question on CEvent Pin
DimpleSurana18-Feb-04 0:10
DimpleSurana18-Feb-04 0:10 
GeneralRe: Question on CEvent Pin
DimpleSurana18-Feb-04 0:50
DimpleSurana18-Feb-04 0:50 
GeneralRe: Question on CEvent Pin
Antti Keskinen18-Feb-04 0:54
Antti Keskinen18-Feb-04 0:54 
I am not absolutely sure, but I believe that in this construction call, a temporary CEvent object is created, then an equality operation is used to make the e equal to it, and then the temporary object is deleted.

On a memory-constrict system this might cause a problem. A better way when you have members in your class that are not base types (classes or similar) and need to initialize them, is to always use a pointer to the type, and reserve memory from the heap by calling new.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Question on CEvent Pin
_Magnus_18-Feb-04 1:14
_Magnus_18-Feb-04 1:14 
GeneralRe: Question on CEvent Pin
Antti Keskinen18-Feb-04 1:26
Antti Keskinen18-Feb-04 1:26 
GeneralRe: Question on CEvent Pin
Prakash Nadar17-Feb-04 23:47
Prakash Nadar17-Feb-04 23:47 
GeneralRe: Question on CEvent Pin
DimpleSurana18-Feb-04 0:51
DimpleSurana18-Feb-04 0:51 
GeneralRe: Question on CEvent Pin
Prakash Nadar18-Feb-04 1:29
Prakash Nadar18-Feb-04 1:29 
GeneralRe: Question on CEvent Pin
DimpleSurana18-Feb-04 2:01
DimpleSurana18-Feb-04 2:01 
GeneralRe: Question on CEvent Pin
Prakash Nadar18-Feb-04 3:04
Prakash Nadar18-Feb-04 3:04 
GeneralRe: Question on CEvent Pin
DimpleSurana18-Feb-04 3:06
DimpleSurana18-Feb-04 3:06 
GeneralRe: Question on CEvent Pin
Prakash Nadar18-Feb-04 3:22
Prakash Nadar18-Feb-04 3:22 
GeneralRe: Question on CEvent Pin
KaroCH18-Feb-04 4:43
KaroCH18-Feb-04 4:43 
Generalvery simple problem.....but stuck Pin
feannor17-Feb-04 21:57
feannor17-Feb-04 21:57 
GeneralRe: very simple problem.....but stuck Pin
Prakash Nadar17-Feb-04 22:12
Prakash Nadar17-Feb-04 22:12 
GeneralRe: very simple problem.....but stuck Pin
feannor17-Feb-04 22:24
feannor17-Feb-04 22:24 
GeneralProblem with Unicode string ! Pin
nguyen_nd17-Feb-04 21:23
nguyen_nd17-Feb-04 21:23 
GeneralRe: Problem with Unicode string ! Pin
Prakash Nadar17-Feb-04 21:39
Prakash Nadar17-Feb-04 21:39 
GeneralRe: Problem with Unicode string ! Pin
paulb17-Feb-04 23:38
paulb17-Feb-04 23:38 
GeneralRe: Problem with Unicode string ! Pin
Robert A. T. Káldy18-Feb-04 0:01
Robert A. T. Káldy18-Feb-04 0:01 

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.