Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Serial Port OK in class constructor but not outside... Pin
pasztorpisti23-Jul-13 9:16
pasztorpisti23-Jul-13 9:16 
The guys have already given you good hints, I give you another one: Never call virtual methods from the constructor and destructor of your classes because at the time the constructor and destructor is executed the vtable is set the the vtable of the class whose ctor/dtor is being executed even if this object is the instance of a derived class that would have override for the called virtual methods. This leads to a lot of errors and this C++ glitch also implies that serious initialization in the ctor is discouraged.
GeneralRe: Serial Port OK in class constructor but not outside... Pin
Richard Andrew x6423-Jul-13 13:31
professionalRichard Andrew x6423-Jul-13 13:31 
GeneralRe: Serial Port OK in class constructor but not outside... Pin
pasztorpisti24-Jul-13 1:03
pasztorpisti24-Jul-13 1:03 
GeneralRe: Serial Port OK in class constructor but not outside... Pin
Richard Andrew x6424-Jul-13 14:03
professionalRichard Andrew x6424-Jul-13 14:03 
GeneralRe: Serial Port OK in class constructor but not outside... Pin
pasztorpisti24-Jul-13 14:17
pasztorpisti24-Jul-13 14:17 
QuestionInitilazation error in MFC C++ App Pin
ForNow23-Jul-13 5:16
ForNow23-Jul-13 5:16 
SuggestionRe: Initilazation error in MFC C++ App Pin
Richard MacCutchan23-Jul-13 5:31
mveRichard MacCutchan23-Jul-13 5:31 
GeneralRe: Initilazation error in MFC C++ App Pin
ForNow23-Jul-13 6:30
ForNow23-Jul-13 6:30 
GeneralRe: Initilazation error in MFC C++ App Pin
Richard MacCutchan23-Jul-13 6:48
mveRichard MacCutchan23-Jul-13 6:48 
GeneralRe: Initilazation error in MFC C++ App Pin
ForNow23-Jul-13 8:22
ForNow23-Jul-13 8:22 
GeneralRe: Initilazation error in MFC C++ App Pin
David Crow23-Jul-13 9:11
David Crow23-Jul-13 9:11 
GeneralRe: Initilazation error in MFC C++ App Pin
ForNow26-Jul-13 5:16
ForNow26-Jul-13 5:16 
GeneralRe: Initilazation error in MFC C++ App Pin
ForNow23-Jul-13 6:32
ForNow23-Jul-13 6:32 
QuestionRe: Initilazation error in MFC C++ App Pin
David Crow23-Jul-13 9:11
David Crow23-Jul-13 9:11 
AnswerRe: Initilazation error in MFC C++ App Pin
ForNow23-Jul-13 11:01
ForNow23-Jul-13 11:01 
AnswerRe: Initilazation error in MFC C++ App Pin
Erudite_Eric29-Jul-13 0:39
Erudite_Eric29-Jul-13 0:39 
GeneralMessage Closed Pin
22-Jul-13 6:11
NaOHwwl22-Jul-13 6:11 
GeneralRe: Compiler Error Pin
R. Giskard Reventlov22-Jul-13 6:17
R. Giskard Reventlov22-Jul-13 6:17 
GeneralRe: Compiler Error Pin
Thomas Daniels22-Jul-13 6:50
mentorThomas Daniels22-Jul-13 6:50 
GeneralRe: Compiler Error Pin
R. Giskard Reventlov22-Jul-13 6:58
R. Giskard Reventlov22-Jul-13 6:58 
GeneralRe: Compiler Error Pin
Thomas Daniels22-Jul-13 6:59
mentorThomas Daniels22-Jul-13 6:59 
GeneralRe: Compiler Error Pin
Richard MacCutchan22-Jul-13 21:15
mveRichard MacCutchan22-Jul-13 21:15 
GeneralRe: Compiler Error Pin
Thomas Daniels22-Jul-13 22:21
mentorThomas Daniels22-Jul-13 22:21 
GeneralRe: Compiler Error Pin
R. Giskard Reventlov23-Jul-13 5:22
R. Giskard Reventlov23-Jul-13 5:22 
GeneralRe: Compiler Error Pin
Richard MacCutchan23-Jul-13 5:29
mveRichard MacCutchan23-Jul-13 5:29 

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.