Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
CPallini17-Apr-08 21:48
mveCPallini17-Apr-08 21:48 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
Naveen17-Apr-08 21:55
Naveen17-Apr-08 21:55 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
CPallini17-Apr-08 22:48
mveCPallini17-Apr-08 22:48 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
Naveen17-Apr-08 22:58
Naveen17-Apr-08 22:58 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
CPallini17-Apr-08 21:45
mveCPallini17-Apr-08 21:45 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' [modified] Pin
C.P.Rajesh17-Apr-08 21:55
C.P.Rajesh17-Apr-08 21:55 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
CPallini17-Apr-08 22:55
mveCPallini17-Apr-08 22:55 
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
C.P.Rajesh17-Apr-08 23:24
C.P.Rajesh17-Apr-08 23:24 
Thank you very much for your suggestion.
I have a doubt in the first one. Is there any standard library container which stores different data types in one list, i mean first object is 'int', second is some user defined and so on?

In the second suggestion by saying 'Exploit polymorphism' i beleve you are talking about run time polymorphism i.e using virtual functions. But i am afraid i can't do that because the base class doesn't know about the object type to do any manipulation. If i make it a template class then i cannot have a base pointer in node to point to any data type.
Thank you once again for your time and effort.
GeneralRe: error C2440: 'initializing' : cannot convert from 'class base *' to 'class Derived *' Pin
jhwurmbach18-Apr-08 2:26
jhwurmbach18-Apr-08 2:26 
QuestionHow to Change the Font Dynamically on button control Pin
phanindra varma17-Apr-08 20:39
phanindra varma17-Apr-08 20:39 
AnswerRe: How to Change the Font Dynamically on button control Pin
Hamid_RT17-Apr-08 21:00
Hamid_RT17-Apr-08 21:00 
AnswerRe: How to Change the Font Dynamically on button control Pin
softwero18-Apr-08 12:46
softwero18-Apr-08 12:46 
GeneralRe: How to Change the Font Dynamically on button control Pin
phanindra varma18-Apr-08 22:23
phanindra varma18-Apr-08 22:23 
GeneralRe: How to Change the Font Dynamically on button control Pin
softwero22-Apr-08 8:57
softwero22-Apr-08 8:57 
GeneralCombo Box issue Pin
Chandrasekharan P17-Apr-08 20:12
Chandrasekharan P17-Apr-08 20:12 
GeneralRe: Combo Box issue Pin
Hamid_RT17-Apr-08 20:33
Hamid_RT17-Apr-08 20:33 
GeneralRe: Combo Box issue Pin
Iain Clarke, Warrior Programmer17-Apr-08 22:57
Iain Clarke, Warrior Programmer17-Apr-08 22:57 
Questionhow can i set the menu position . Pin
vasu_sri17-Apr-08 19:43
vasu_sri17-Apr-08 19:43 
GeneralSaveDC returning 0 Pin
Super Hornet17-Apr-08 19:43
Super Hornet17-Apr-08 19:43 
GeneralRe: SaveDC returning 0 Pin
Hamid_RT17-Apr-08 20:31
Hamid_RT17-Apr-08 20:31 
GeneralRe: SaveDC returning 0 Pin
Super Hornet17-Apr-08 20:34
Super Hornet17-Apr-08 20:34 
GeneralRe: SaveDC returning 0 Pin
Hamid_RT17-Apr-08 21:03
Hamid_RT17-Apr-08 21:03 
GeneralRe: SaveDC returning 0 Pin
Super Hornet17-Apr-08 22:11
Super Hornet17-Apr-08 22:11 
GeneralRe: SaveDC returning 0 Pin
Hamid_RT17-Apr-08 22:54
Hamid_RT17-Apr-08 22:54 
Generali want to convert the byte information into bit information Pin
huma satti17-Apr-08 19:42
huma satti17-Apr-08 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.