Click here to Skip to main content
16,017,690 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: plea for assistance with CByteArray - compiler errors Pin
brian scott15-Oct-05 1:43
brian scott15-Oct-05 1:43 
Questionhow to import 3D SMax file in VC++? Pin
Anonymous14-Oct-05 22:34
Anonymous14-Oct-05 22:34 
AnswerRe: how to import 3D SMax file in VC++? Pin
The NULL Developer14-Oct-05 22:49
professionalThe NULL Developer14-Oct-05 22:49 
GeneralRe: how to import 3D SMax file in VC++? Pin
Anonymous14-Oct-05 23:41
Anonymous14-Oct-05 23:41 
QuestionListBox Control problem with code Pin
Rahul U Kate14-Oct-05 22:05
Rahul U Kate14-Oct-05 22:05 
Question840723 - overriding an MFC function Pin
ilostmyid214-Oct-05 21:56
professionalilostmyid214-Oct-05 21:56 
AnswerRe: 840723 - overriding an MFC function Pin
khan++14-Oct-05 22:25
khan++14-Oct-05 22:25 
QuestionRe: 840723 - overriding an MFC function Pin
ilostmyid215-Oct-05 2:00
professionalilostmyid215-Oct-05 2:00 
thanx khan for answering me.
let's discuss about ur answer!
1. it's better to use "derived" word. instead of "when your class is a descendent of the class whose function you want to override" it's better to say "when ur class is derived from the class whose function..."
2. when a function is declared as virtual, if it's overriden in the derived class, functions of the base class see it and call it instead of the original one (the function in the base class) while they may think they're really calling the original one.
if the function is not declared as virtual in the base class both classes have their own function with the same prototype. that is functions of base class when call it call the function of base class and function of the derived class when call it call the function of the derived class.
this is what the "virtual" keyword provides.
3. what do u mean by subclassing?
4. u may also use "base" instead of "parent"
i remind my question again. i'm looking for a way for functions of base class to call the function i write instead of what they're linked to. when this member function is not declared as virtual this sounds impossible, but i think there must be a way. besides, there may be a function not belonging to any class and i need to override it.
this may be a linker option or so that when encounters an ambiguity decides which one to use. normally it ignores my code and uses one defined in MFC itself.
when i was programming with BC++ or TC++ some years ago, the linker prefered my code over the original one.
and khan! English seems not to be ur mother tongue like me! Wink | ;)
thanks again for ur appreciate and also waiting for other answers

Questionconvert cstring to int Pin
cell5114-Oct-05 21:01
cell5114-Oct-05 21:01 
AnswerRe: convert cstring to int Pin
Prakash Nadar14-Oct-05 21:09
Prakash Nadar14-Oct-05 21:09 
AnswerRe: convert cstring to int Pin
The NULL Developer14-Oct-05 21:17
professionalThe NULL Developer14-Oct-05 21:17 
AnswerRe: convert cstring to int Pin
John R. Shaw14-Oct-05 21:18
John R. Shaw14-Oct-05 21:18 
AnswerRe: convert cstring to int Pin
khan++14-Oct-05 21:19
khan++14-Oct-05 21:19 
QuestionFile Handle(very urgent) Pin
swaapu14-Oct-05 20:59
swaapu14-Oct-05 20:59 
AnswerRe: File Handle(very urgent) Pin
khan++14-Oct-05 21:17
khan++14-Oct-05 21:17 
GeneralRe: File Handle(very urgent) Pin
swaapu14-Oct-05 23:16
swaapu14-Oct-05 23:16 
GeneralRe: File Handle(very urgent) Pin
khan++14-Oct-05 23:38
khan++14-Oct-05 23:38 
GeneralRe: File Handle(very urgent) Pin
swaapu15-Oct-05 1:31
swaapu15-Oct-05 1:31 
QuestionADO datetime parameter - datestring or numbers to VARIANT Pin
compoundeye14-Oct-05 20:54
compoundeye14-Oct-05 20:54 
AnswerRe: ADO datetime parameter - datestring or numbers to VARIANT Pin
Mircea Puiu14-Oct-05 21:32
Mircea Puiu14-Oct-05 21:32 
GeneralRe: ADO datetime parameter - datestring or numbers to VARIANT Pin
compoundeye14-Oct-05 21:46
compoundeye14-Oct-05 21:46 
QuestionWhy unable to receive all message from connected clients using IOCP Pin
14-Oct-05 20:08
suss14-Oct-05 20:08 
QuestionPlaying an mp3 file from memory Pin
V.G14-Oct-05 20:05
V.G14-Oct-05 20:05 
QuestionHow to find data encoding of received buffer with WSARecv() Pin
Member 168985514-Oct-05 19:49
Member 168985514-Oct-05 19:49 
AnswerRe: How to find data encoding of received buffer with WSARecv() Pin
kakan16-Oct-05 19:42
professionalkakan16-Oct-05 19:42 

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.