Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConfusion Pin
john563218-Feb-10 23:41
john563218-Feb-10 23:41 
AnswerRe: Confusion Pin
Rajesh R Subramanian18-Feb-10 23:45
professionalRajesh R Subramanian18-Feb-10 23:45 
GeneralRe: Confusion Pin
john563218-Feb-10 23:56
john563218-Feb-10 23:56 
GeneralRe: Confusion Pin
Maximilien19-Feb-10 0:32
Maximilien19-Feb-10 0:32 
GeneralRe: Confusion Pin
Richard MacCutchan19-Feb-10 3:41
mveRichard MacCutchan19-Feb-10 3:41 
AnswerRe: Confusion Pin
KingsGambit19-Feb-10 2:21
KingsGambit19-Feb-10 2:21 
QuestionSorting/Arranging Rect buttons [modified] Pin
shiv@nand18-Feb-10 23:41
shiv@nand18-Feb-10 23:41 
AnswerRe: Sorting/Arranging Rect buttons Pin
Rajesh R Subramanian18-Feb-10 23:43
professionalRajesh R Subramanian18-Feb-10 23:43 
QuestionHow to add "Publisher" name to Custom Add ons in IE Pin
am 200918-Feb-10 23:30
am 200918-Feb-10 23:30 
AnswerRe: How to add "Publisher" name to Custom Add ons in IE Pin
KingsGambit19-Feb-10 1:25
KingsGambit19-Feb-10 1:25 
Questionhow can change flash sms format in at commands? Pin
Le@rner18-Feb-10 20:15
Le@rner18-Feb-10 20:15 
AnswerRe: how can change flash sms format in at commands? Pin
fat_boy19-Feb-10 2:46
fat_boy19-Feb-10 2:46 
Questionfile version information is updated but product version is not Pin
learningvisualc18-Feb-10 18:10
learningvisualc18-Feb-10 18:10 
QuestionCDatabase error Pin
kk.tvm18-Feb-10 17:55
kk.tvm18-Feb-10 17:55 
AnswerRe: CDatabase error Pin
Game-point18-Feb-10 17:59
Game-point18-Feb-10 17:59 
GeneralRe: CDatabase error Pin
kk.tvm18-Feb-10 18:24
kk.tvm18-Feb-10 18:24 
GeneralRe: CDatabase error Pin
Game-point18-Feb-10 21:38
Game-point18-Feb-10 21:38 
QuestionRuning the MFC program in Silent Mode. Pin
mostafa_pasha18-Feb-10 13:31
mostafa_pasha18-Feb-10 13:31 
AnswerRe: Runing the MFC program in Silent Mode. Pin
David Crow18-Feb-10 15:24
David Crow18-Feb-10 15:24 
AnswerRe: Runing the MFC program in Silent Mode. Pin
Avi Berger18-Feb-10 15:44
Avi Berger18-Feb-10 15:44 
GeneralRe: Runing the MFC program in Silent Mode. Pin
Maximilien19-Feb-10 0:35
Maximilien19-Feb-10 0:35 
GeneralRe: Runing the MFC program in Silent Mode. Pin
Avi Berger19-Feb-10 11:50
Avi Berger19-Feb-10 11:50 
GeneralRe: Runing the MFC program in Silent Mode. Pin
Rozis21-Feb-10 10:58
Rozis21-Feb-10 10:58 
GeneralRe: Runing the MFC program in Silent Mode. Pin
Avi Berger23-Feb-10 7:02
Avi Berger23-Feb-10 7:02 
Questioncan one use vectors of subclasses in a parameter list? Pin
genush18-Feb-10 8:42
genush18-Feb-10 8:42 
I am trying to pass in a vector of some subclass to a function defined with the base class in the parameter list, like void mod(vector < baseclass > &bcs). If I have a vector of subclass objects, as vector < subclass > sc, and call mod(sc), I get the error "A reference that is not to 'const' cannot be bound to a non-lvalue". Doing this without vectors is no problem; i.e, void mod(baseclass &bc), subclass sc; call mod(sc). I can get around this by defining 2 sum(*) functions, one with a baseclass parameter and one with a subclass parameter, but there goes the use of inheritance. The vector will by modified by mod(*), so I don't want to pass as const. Is there a way I can use 1 function on both the base and sub classes? Thanks.

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.