Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCEdit Class Pin
merlinore2-Apr-06 11:23
merlinore2-Apr-06 11:23 
AnswerRe: CEdit Class Pin
Christian Graus2-Apr-06 12:41
protectorChristian Graus2-Apr-06 12:41 
QuestionCalling the constructor Pin
Alexander M.,2-Apr-06 10:33
Alexander M.,2-Apr-06 10:33 
AnswerRe: Calling the constructor Pin
Nemanja Trifunovic2-Apr-06 10:46
Nemanja Trifunovic2-Apr-06 10:46 
GeneralRe: Calling the constructor Pin
Alexander M.,2-Apr-06 11:31
Alexander M.,2-Apr-06 11:31 
GeneralRe: Calling the constructor Pin
Waldermort2-Apr-06 11:53
Waldermort2-Apr-06 11:53 
GeneralRe: Calling the constructor Pin
Waldermort2-Apr-06 12:04
Waldermort2-Apr-06 12:04 
GeneralRe: Calling the constructor Pin
toxcct2-Apr-06 22:17
toxcct2-Apr-06 22:17 
waldermort wrote:
pClass = new CClass();


nop walder, this line is correct.

> using no parameter will always implicitely call the default constructor.

> using parenthesis without parameters will call the same default constructor, but explicitely.

> using some parenthesis with parameters will make the compiler look for the best fitting constructor.

you must know that some constructors can be declared as explicit, and such constructors cannot be called without parenthesis !!!!
GeneralRe: Calling the constructor Pin
Alexander M.,2-Apr-06 13:13
Alexander M.,2-Apr-06 13:13 
AnswerRe: Calling the constructor Pin
cmk2-Apr-06 15:12
cmk2-Apr-06 15:12 
AnswerRe: Calling the constructor Pin
Stephen Hewitt2-Apr-06 16:20
Stephen Hewitt2-Apr-06 16:20 
AnswerRe: Calling the constructor Pin
Michael Dunn2-Apr-06 16:57
sitebuilderMichael Dunn2-Apr-06 16:57 
QuestionProblem to be solved in Visual C++ Express Edition Pin
aliashar862-Apr-06 10:00
aliashar862-Apr-06 10:00 
AnswerRe: Problem to be solved in Visual C++ Express Edition Pin
Waldermort2-Apr-06 11:49
Waldermort2-Apr-06 11:49 
QuestionFile name from a command line Pin
IvanovaIsGod2-Apr-06 6:22
IvanovaIsGod2-Apr-06 6:22 
AnswerRe: File name from a command line Pin
FarPointer2-Apr-06 7:07
FarPointer2-Apr-06 7:07 
AnswerRe: File name from a command line Pin
Michael Dunn2-Apr-06 7:16
sitebuilderMichael Dunn2-Apr-06 7:16 
QuestionDebbuger traps Pin
Waldermort2-Apr-06 5:01
Waldermort2-Apr-06 5:01 
AnswerRe: Debbuger traps Pin
Stephen Hewitt2-Apr-06 17:51
Stephen Hewitt2-Apr-06 17:51 
QuestionLinking non-default libraries in VC++ Pin
Kordzik2-Apr-06 4:44
Kordzik2-Apr-06 4:44 
AnswerRe: Linking non-default libraries in VC++ Pin
Michael Dunn2-Apr-06 7:17
sitebuilderMichael Dunn2-Apr-06 7:17 
AnswerRe: Linking non-default libraries in VC++ Pin
Laxman Auti2-Apr-06 17:58
Laxman Auti2-Apr-06 17:58 
Questionabout dynamic append menu Pin
FlyWithYou2-Apr-06 4:12
FlyWithYou2-Apr-06 4:12 
AnswerRe: about dynamic append menu Pin
FarPointer2-Apr-06 4:17
FarPointer2-Apr-06 4:17 
GeneralRe: about dynamic append menu Pin
FlyWithYou2-Apr-06 5:47
FlyWithYou2-Apr-06 5:47 

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.