Click here to Skip to main content
15,886,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: class is missing "type" - why ? PinPopular
leon de boer12-Oct-16 17:45
leon de boer12-Oct-16 17:45 
AnswerRe: class is missing "type" - why ? Pin
Graham Breach12-Oct-16 23:11
Graham Breach12-Oct-16 23:11 
QuestionObject Creation of an class? Pin
Mathan_CodeProject11-Oct-16 5:17
Mathan_CodeProject11-Oct-16 5:17 
AnsweralternatRe: Object Creation of an class? Pin
leon de boer11-Oct-16 5:50
leon de boer11-Oct-16 5:50 
GeneralRe: alternatRe: Object Creation of an class? Pin
Mathan_CodeProject11-Oct-16 23:02
Mathan_CodeProject11-Oct-16 23:02 
AnswerRe: Object Creation of an class? Pin
Krishnakumartg11-Oct-16 19:46
Krishnakumartg11-Oct-16 19:46 
GeneralRe: Object Creation of an class? Pin
Mathan_CodeProject11-Oct-16 23:01
Mathan_CodeProject11-Oct-16 23:01 
AnswerRe: Object Creation of an class? Pin
Midi_Mick11-Oct-16 22:13
professionalMidi_Mick11-Oct-16 22:13 
One other point to remember - if you declare a pointer to the object (the second declaration), you need to explicitly call the constructor and destructor. When declaring it as an instance (first declaration), the constructor is called automatically at the point of the declaration, and the destructor is called when it goes out of scope.
Cheers,

Mick
------------------------------------------------
It doesn't matter how often or hard you fall on your arse, eventually you'll roll over and land on your feet.

GeneralRe: Object Creation of an class? Pin
Mathan_CodeProject11-Oct-16 23:01
Mathan_CodeProject11-Oct-16 23:01 
QuestionC++ syntax Pin
Ratul Thakur10-Oct-16 21:35
Ratul Thakur10-Oct-16 21:35 
AnswerRe: C++ syntax Pin
CPallini10-Oct-16 21:49
mveCPallini10-Oct-16 21:49 
AnswerRe: C++ syntax Pin
Richard MacCutchan10-Oct-16 21:50
mveRichard MacCutchan10-Oct-16 21:50 
AnswerRe: C++ syntax Pin
David Crow11-Oct-16 6:20
David Crow11-Oct-16 6:20 
QuestionOne more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_9-Oct-16 6:18
Vaclav_9-Oct-16 6:18 
AnswerRe: One more error using function pointers - void value not ignored as it ought to be Pin
Richard MacCutchan9-Oct-16 6:36
mveRichard MacCutchan9-Oct-16 6:36 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_9-Oct-16 7:53
Vaclav_9-Oct-16 7:53 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 23:11
leon de boer9-Oct-16 23:11 
AnswerRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 21:42
leon de boer9-Oct-16 21:42 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Richard MacCutchan9-Oct-16 21:49
mveRichard MacCutchan9-Oct-16 21:49 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer9-Oct-16 23:23
leon de boer9-Oct-16 23:23 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Richard MacCutchan9-Oct-16 23:25
mveRichard MacCutchan9-Oct-16 23:25 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_10-Oct-16 4:17
Vaclav_10-Oct-16 4:17 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer10-Oct-16 4:32
leon de boer10-Oct-16 4:32 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
Vaclav_10-Oct-16 13:20
Vaclav_10-Oct-16 13:20 
GeneralRe: One more error using function pointers - void value not ignored as it ought to be Pin
leon de boer10-Oct-16 17:02
leon de boer10-Oct-16 17:02 

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.