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

C / C++ / MFC

 
GeneralRe: RemoveAll() method Pin
Kleser18-Feb-06 11:45
Kleser18-Feb-06 11:45 
QuestionNeed help with code! Pin
scorpiotkh16-Feb-06 9:49
scorpiotkh16-Feb-06 9:49 
AnswerRe: Need help with code! Pin
David Crow16-Feb-06 10:53
David Crow16-Feb-06 10:53 
GeneralRe: Need help with code! Pin
Nick_Kisialiou16-Feb-06 13:58
Nick_Kisialiou16-Feb-06 13:58 
GeneralRe: Need help with code! Pin
scorpiotkh16-Feb-06 15:08
scorpiotkh16-Feb-06 15:08 
GeneralRe: Need help with code! Pin
scorpiotkh16-Feb-06 14:07
scorpiotkh16-Feb-06 14:07 
GeneralRe: Need help with code! Pin
David Crow16-Feb-06 15:18
David Crow16-Feb-06 15:18 
QuestionDefault constructor vs. Explicit constructor Pin
bob1697216-Feb-06 8:54
bob1697216-Feb-06 8:54 
If I have a class CTest, and have provided my own constructor (with zero parameters), I would expect that the compiler (VC++ 6.0 SP5 and VC++ 7.1) would not create the default constructor. However, my constructor only gets called with a statement like...

CTest test;

When I try and instantiate an object of CTest with a statement like...

CTest test();

my constructor never gets called but the program executes and the compiler does not complain. I have an explicit copy constructor as well and it does not come into play as I entertained this possibility for 10 seconds or so. This begs the question, "What is the difference between the two methods of instantiating an object"?

Am I missing something elemetary here?
AnswerRe: Default constructor vs. Explicit constructor Pin
Michael Dunn16-Feb-06 9:03
sitebuilderMichael Dunn16-Feb-06 9:03 
GeneralRe: Default constructor vs. Explicit constructor Pin
bob1697216-Feb-06 9:10
bob1697216-Feb-06 9:10 
GeneralRe: Default constructor vs. Explicit constructor Pin
John R. Shaw16-Feb-06 20:35
John R. Shaw16-Feb-06 20:35 
GeneralRe: Default constructor vs. Explicit constructor Pin
bob1697217-Feb-06 15:05
bob1697217-Feb-06 15:05 
GeneralRe: Default constructor vs. Explicit constructor Pin
John R. Shaw19-Feb-06 11:56
John R. Shaw19-Feb-06 11:56 
GeneralRe: Default constructor vs. Explicit constructor Pin
bob1697219-Feb-06 15:29
bob1697219-Feb-06 15:29 
QuestionCSocket Error Pin
masnu16-Feb-06 8:01
masnu16-Feb-06 8:01 
AnswerRe: CSocket Error Pin
Ryan Binns16-Feb-06 17:15
Ryan Binns16-Feb-06 17:15 
QuestionRe: CSocket Error Pin
masnu17-Feb-06 3:58
masnu17-Feb-06 3:58 
AnswerRe: CSocket Error Pin
Ryan Binns17-Feb-06 11:40
Ryan Binns17-Feb-06 11:40 
QuestionData coalescing during winsock send() call Pin
clueso16-Feb-06 6:52
clueso16-Feb-06 6:52 
AnswerRe: Data coalescing during winsock send() call Pin
James R. Twine16-Feb-06 7:17
James R. Twine16-Feb-06 7:17 
QuestionCombinations in VC++ Pin
RockyJames16-Feb-06 6:42
RockyJames16-Feb-06 6:42 
AnswerRe: Combinations in VC++ Pin
toxcct16-Feb-06 7:04
toxcct16-Feb-06 7:04 
GeneralRe: Combinations in VC++ Pin
RockyJames16-Feb-06 7:18
RockyJames16-Feb-06 7:18 
GeneralRe: Combinations in VC++ Pin
David Crow16-Feb-06 7:19
David Crow16-Feb-06 7:19 
GeneralRe: Combinations in VC++ Pin
RockyJames16-Feb-06 7:26
RockyJames16-Feb-06 7:26 

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.