Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Call a static member variable from another DLL Pin
Gupta Suraj11-Jan-07 23:05
Gupta Suraj11-Jan-07 23:05 
Questioncast template class A : public B, public vector [modified] Pin
yeti1111-Jan-07 22:10
yeti1111-Jan-07 22:10 
AnswerRe: cast template class A : public B, public vector Pin
Cedric Moonen11-Jan-07 22:14
Cedric Moonen11-Jan-07 22:14 
GeneralRe: cast template class A : public B, public vector [modified] Pin
yeti1111-Jan-07 22:16
yeti1111-Jan-07 22:16 
GeneralRe: cast template class A : public B, public vector Pin
Cedric Moonen11-Jan-07 22:31
Cedric Moonen11-Jan-07 22:31 
GeneralRe: cast template class A : public B, public vector [modified] Pin
yeti1111-Jan-07 22:40
yeti1111-Jan-07 22:40 
GeneralRe: cast template class A : public B, public vector Pin
yeti1111-Jan-07 23:11
yeti1111-Jan-07 23:11 
AnswerRe: cast template class A : public B, public vector Pin
Arman S.12-Jan-07 1:59
Arman S.12-Jan-07 1:59 
Sorry, not possible. vec and result are of different types with no relations.
A<simple1*> has nothing to do with vector<mybase*>; the problem is not in A and/or vector, but in template parameters - simple1* and mybase* - they should be exectly the same type.
IOW, if template arguments are of defferent types (no matter their parent-child relationship), the resulting templatized classes are incompatible.

I think the best thing to do is change the design strategy.


--
======
Arman

GeneralRe: cast template class A : public B, public vector Pin
yeti1112-Jan-07 2:10
yeti1112-Jan-07 2:10 
QuestionHow to force messages to be routed to a specific class ? Pin
Arris7411-Jan-07 21:54
Arris7411-Jan-07 21:54 
AnswerRe: How to force messages to be routed to a specific class ? Pin
Michael Dunn11-Jan-07 21:57
sitebuilderMichael Dunn11-Jan-07 21:57 
GeneralRe: How to force messages to be routed to a specific class ? Pin
Arris7411-Jan-07 22:40
Arris7411-Jan-07 22:40 
QuestionParsing C File Pin
abhi_code11-Jan-07 21:49
abhi_code11-Jan-07 21:49 
AnswerRe: Parsing C File Pin
Rage11-Jan-07 22:33
professionalRage11-Jan-07 22:33 
GeneralRe: Parsing C File Pin
abhi_code31-Jan-07 19:06
abhi_code31-Jan-07 19:06 
AnswerRe: Parsing C File Pin
James R. Twine12-Jan-07 1:42
James R. Twine12-Jan-07 1:42 
GeneralRe: Parsing C File Pin
abhi_code16-Jan-07 5:52
abhi_code16-Jan-07 5:52 
QuestionHow to type japanese font in resource in VC++ projects Pin
Atul2311-Jan-07 20:47
Atul2311-Jan-07 20:47 
AnswerRe: How to type japanese font in resource in VC++ projects Pin
Haroon Sarwar11-Jan-07 20:55
Haroon Sarwar11-Jan-07 20:55 
AnswerRe: How to type japanese font in resource in VC++ projects Pin
Rajesh R Subramanian11-Jan-07 21:02
professionalRajesh R Subramanian11-Jan-07 21:02 
AnswerRe: How to type japanese font in resource in VC++ projects Pin
Hamid_RT11-Jan-07 21:04
Hamid_RT11-Jan-07 21:04 
QuestionDifference between Service and Console Application Pin
Kotesh.N11-Jan-07 20:10
Kotesh.N11-Jan-07 20:10 
AnswerRe: Difference between Service and Console Application Pin
Jonathan [Darka]11-Jan-07 22:38
professionalJonathan [Darka]11-Jan-07 22:38 
GeneralRe: Difference between Service and Console Application Pin
ThatsAlok12-Jan-07 2:37
ThatsAlok12-Jan-07 2:37 
GeneralRe: Difference between Service and Console Application Pin
Jonathan [Darka]12-Jan-07 2:42
professionalJonathan [Darka]12-Jan-07 2: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.