Click here to Skip to main content
15,879,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionListView / Win32 Pin
Fareed Rizkalla11-Apr-10 9:44
Fareed Rizkalla11-Apr-10 9:44 
AnswerRe: ListView / Win32 Pin
Richard MacCutchan11-Apr-10 22:28
mveRichard MacCutchan11-Apr-10 22:28 
GeneralRe: ListView / Win32 Pin
Fareed Rizkalla11-Apr-10 23:29
Fareed Rizkalla11-Apr-10 23:29 
GeneralRe: ListView / Win32 Pin
Richard MacCutchan18-Apr-10 4:45
mveRichard MacCutchan18-Apr-10 4:45 
AnswerRe: ListView / Win32 Pin
peterchen12-Apr-10 20:28
peterchen12-Apr-10 20:28 
QuestionComboBox / Win32 Pin
Fareed Rizkalla11-Apr-10 9:42
Fareed Rizkalla11-Apr-10 9:42 
QuestionC++ class pointers Pin
rupeshkp72811-Apr-10 6:52
rupeshkp72811-Apr-10 6:52 
AnswerRe: C++ class pointers Pin
peterchen11-Apr-10 8:25
peterchen11-Apr-10 8:25 
There are two ways of dealing with pointer members:

Default Constructor
e.g. initialize to NULL or allocate memory

Destructor
free memory if allocated and the class "owns" the memory

Copy Constructor & Assignment Operator
Handle them correctly - e.g. free the memory allocated


it is good practice to use one class per unmanaged resource.
Agh! Reality! My Archnemesis![^]

| FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

GeneralRe: C++ class pointers [modified] Pin
Joe Woodbury11-Apr-10 13:52
professionalJoe Woodbury11-Apr-10 13:52 
GeneralRe: C++ class pointers Pin
peterchen12-Apr-10 0:04
peterchen12-Apr-10 0:04 
GeneralRe: C++ class pointers Pin
Joe Woodbury12-Apr-10 6:30
professionalJoe Woodbury12-Apr-10 6:30 
GeneralRe: C++ class pointers Pin
peterchen12-Apr-10 20:27
peterchen12-Apr-10 20:27 
GeneralRe: C++ class pointers Pin
Tim Craig11-Apr-10 17:32
Tim Craig11-Apr-10 17:32 
GeneralRe: C++ class pointers Pin
rupeshkp72811-Apr-10 19:30
rupeshkp72811-Apr-10 19:30 
GeneralRe: C++ class pointers Pin
peterchen12-Apr-10 20:33
peterchen12-Apr-10 20:33 
GeneralRe: C++ class pointers Pin
Tim Craig12-Apr-10 21:00
Tim Craig12-Apr-10 21:00 
AnswerRe: C++ class pointers Pin
Emilio Garavaglia11-Apr-10 20:58
Emilio Garavaglia11-Apr-10 20:58 
QuestionC++Linking Classes/.cpp files to run one after other? Pin
FinalDecap11-Apr-10 5:59
FinalDecap11-Apr-10 5:59 
AnswerRe: C++Linking Classes/.cpp files to run one after other? Pin
Cedric Moonen11-Apr-10 20:57
Cedric Moonen11-Apr-10 20:57 
QuestionArray indexes Pin
Farraj10-Apr-10 23:46
Farraj10-Apr-10 23:46 
AnswerRe: Array indexes Pin
Nelek11-Apr-10 0:26
protectorNelek11-Apr-10 0:26 
AnswerRe: Array indexes Pin
Saurabh.Garg11-Apr-10 2:01
Saurabh.Garg11-Apr-10 2:01 
AnswerRe: Array indexes Pin
Luc Pattyn11-Apr-10 2:15
sitebuilderLuc Pattyn11-Apr-10 2:15 
AnswerRe: Array indexes Pin
Farraj11-Apr-10 3:04
Farraj11-Apr-10 3:04 
GeneralRe: Array indexes Pin
Luc Pattyn11-Apr-10 3:30
sitebuilderLuc Pattyn11-Apr-10 3:30 

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.