Click here to Skip to main content
16,005,209 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:33
Achim Klein17-Sep-05 15:33 
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:39
BlitzPackage17-Sep-05 15:39 
GeneralRe: Question About Pointers in C++ Pin
Johann Gerell17-Sep-05 19:24
Johann Gerell17-Sep-05 19:24 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein18-Sep-05 1:50
Achim Klein18-Sep-05 1:50 
AnswerRe: Question About Pointers in C++ Pin
Johann Gerell17-Sep-05 19:48
Johann Gerell17-Sep-05 19:48 
QuestionAfxGetThread returning NULL in Debug Mode and causing crash Pin
Anonymous16-Sep-05 17:46
Anonymous16-Sep-05 17:46 
QuestionPure virtual function calls in Constructor Pin
RichardS16-Sep-05 11:05
RichardS16-Sep-05 11:05 
AnswerRe: Pure virtual function calls in Constructor Pin
S. Senthil Kumar16-Sep-05 20:16
S. Senthil Kumar16-Sep-05 20:16 
In C++, you shouldn't call virtual functions from the constructor or the destructor. The derived class's functions are updated in the virtual table only when their constructor runs. The base class's constructor runs before the derived class's, so during execution of the base class constructor, only the base class implementation of the virtual functions will be available.

In your case, it happens to be pure virtual and so the linker is complaining. The only way I know around this is to call a base class function (equivalent to the constructor) from every derived class's constructor. Ugly and I'm not sure it's standard C++ behavior, but it works because at that point the derived class has already set up the vtable for it's overridden virtual functions.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Pure virtual function calls in Constructor Pin
RichardS17-Sep-05 16:33
RichardS17-Sep-05 16:33 
AnswerRe: Pure virtual function calls in Constructor Pin
Nemanja Trifunovic17-Sep-05 4:35
Nemanja Trifunovic17-Sep-05 4:35 
GeneralRe: Pure virtual function calls in Constructor Pin
RichardS17-Sep-05 16:31
RichardS17-Sep-05 16:31 
QuestionConvert ASCII to HEX Pin
RedDragon2k16-Sep-05 9:23
RedDragon2k16-Sep-05 9:23 
AnswerRe: Convert ASCII to HEX Pin
RichardS17-Sep-05 16:57
RichardS17-Sep-05 16:57 
GeneralRe: Convert ASCII to HEX Pin
Johann Gerell17-Sep-05 23:13
Johann Gerell17-Sep-05 23:13 
GeneralRe: Convert ASCII to HEX Pin
RichardS18-Sep-05 5:22
RichardS18-Sep-05 5:22 
GeneralRe: Convert ASCII to HEX Pin
Johann Gerell18-Sep-05 6:22
Johann Gerell18-Sep-05 6:22 
QuestionC++ PROJECT HELP!!!! Pin
da_comp_learner15-Sep-05 19:25
da_comp_learner15-Sep-05 19:25 
AnswerRe: C++ PROJECT HELP!!!! Pin
Saksida Bojan16-Sep-05 2:27
Saksida Bojan16-Sep-05 2:27 
Questionwhat is the problem? Pin
mcnu15-Sep-05 16:20
mcnu15-Sep-05 16:20 
QuestionGraphic in linux Pin
Ta Xuan Hung15-Sep-05 15:19
Ta Xuan Hung15-Sep-05 15:19 
AnswerRe: Graphic in linux Pin
Christian Graus15-Sep-05 15:38
protectorChristian Graus15-Sep-05 15:38 
AnswerRe: Graphic in linux Pin
Christian Graus15-Sep-05 15:51
protectorChristian Graus15-Sep-05 15:51 
Questionchar array structures Pin
charstock15-Sep-05 14:58
charstock15-Sep-05 14:58 
AnswerRe: char array structures Pin
Christian Graus15-Sep-05 15:36
protectorChristian Graus15-Sep-05 15:36 
GeneralRe: char array structures Pin
charstock16-Sep-05 3:00
charstock16-Sep-05 3:00 

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.