Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pathnames - backslash Pin
#realJSOP13-Jan-07 3:29
professional#realJSOP13-Jan-07 3:29 
GeneralRe: CString Pathnames - backslash Pin
ThatsAlok14-Jan-07 18:22
ThatsAlok14-Jan-07 18:22 
QuestionOnKillFocus Pin
Gupta Suraj11-Jan-07 22:36
Gupta Suraj11-Jan-07 22:36 
AnswerRe: OnKillFocus Pin
James R. Twine12-Jan-07 1:37
James R. Twine12-Jan-07 1:37 
QuestionHow to Call a static member variable from another DLL Pin
uday kiran janaswamy11-Jan-07 22:28
uday kiran janaswamy11-Jan-07 22:28 
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 
It is quite difficult to read your code because all the < and > are missing (and, for templates, that's quite annoying). Replace all occurences of these in your code by the '<' and '>' symbols (just above the emoticons). And by the way, what is sample1 and mybase ? What are they doing here Confused | :confused: ?

Anyway to answer your question: vec (instance of A) IS a vector (because A inherits from std::vector) so you can use all the methods of your vector, you don't need to cast it.


Cédric Moonen
Software developer

Charting control [v1.1]

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 
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 

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.