|
hi all,
i am savitri,i am from india,i am used the function like the below but it showing error. please some one help me to debug that error please.
SN = A_BUGFIX(ResultSN[ctr])+SN;
this is error:
error C2666: '+' : 4 overloads have similar conversions
thanku all,
savitri.
|
|
|
|
|
Hi Savitri,
savitri wrote: i am from india
I could only wish you were not.
You just posted a question, which can be an example for "How not to post a query in the forum". Please read How to get an answer to your questions[^] before you post further doubts. Also see if it would be plausible for you to buy a very basic C++ book.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Now we have "li zhiyuan" and "savitri". They two can form a band.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: They two can form a band.
what type of band, drummer band or programmer band!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
ThatsAlok wrote: what type of band, drummer band or programmer band!
A beginner level C++ book-buying band.
Maxwell Chen
|
|
|
|
|
May be it is possible to get group discount.
|
|
|
|
|
on books
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Rajesh R Subramanian wrote: savitri wrote:
i am from india
I could only wish you were not.
sometime it happen, a famouse quote from Hindi Flim, "in big cities, small thing generally happens"
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
ThatsAlok wrote: sometime it happen, a famouse quote from Hindi Flim, "in big cities, small thing generally happens"
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
you working some where or you are in college!. actually before replying to your answer we must know what type of variable SN is, what A_BUGFIX function do ?
thanks!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
hi all,
i am studying,, why u all are inserting too much.. all are take some time to learn new things ok. u all also from scratch only become expert in subjects ok. dont insert to freshers ok.
thanku,
savitri.
|
|
|
|
|
savitri wrote: scratch
Scratch what?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
savitri wrote: i am studying,, why u all are inserting too much.. all are take some time to learn new things ok. u all also from scratch only become expert in subjects ok. dont insert to freshers ok.
I read books which teach C++ syntax when I was learning C++ from scratch ten years ago!
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: I read books which teach C++ syntax when I was learning C++ from scratch ten years ago!
I also have a book about c++, but I think it is broken, because the ctrl-f function doesn't work.
I first thought it the battery was empty, but I can't seem to find where I should put new batteries.
codito ergo sum
|
|
|
|
|
BadKarma wrote: I also have a book about c++, but I think it is broken, because the ctrl-f function doesn't work.
I first thought it the battery was empty, but I can't seem to find where I should put new batteries.
It's very easy: Don't waste the effort to put new batteries. Buy a new book instead!
(But why does a C++ book need batteries?! )
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: (But why does a C++ book need batteries?! )
to help you to find code , this book is equiped with AI, which read your mind and find the suitable answer!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
yes, you are correct, may be he meant his "broken" noteBOOK (PC).
|
|
|
|
|
Notebook.. wow! i am still using desktop
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
savitri wrote: u all also from scratch only become expert in subjects ok. dont insert to freshers ok.
I amnot insulting you! I am a beginner too! thats why i refer you to teh online version of bruce eckel book!. one of the best book for C++.
Secondly, if you see, I don't have sixth vision, to visualise what all the function do! you have to show me the code before get answered!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
savitri wrote: i am studying
well, this is not what you said here[^]. You said you completed your BE in 2007, didn't you? And since you said you completed BE in 2007, I will assume that you already have a job.
savitri wrote: why u all are inserting too much
you mean to say 'insulting'?
savitri wrote: all are take some time to learn new things ok
And with your kind of approach, it will take even longer.
savitri wrote: dont insert to freshers
again, you mean 'insult'?
your communication skills are as poor as your knowledge on C++. Try improving both.
Regards,
Vijay.
|
|
|
|
|
Vijay, nice reply dude, but it would better if you send her the mail..!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
If you have MSDN installed (or online MSDN), you can check for error code C2666. Here's the explanation :
An overloaded function or operator is ambiguous. Formal parameter lists may be too similar for the compiler to resolve the ambiguity. To resolve this error, explicitly cast one or more of the actual parameters.
Your problem here is that there are several definitions of A_BUGFIX that can be used in that line, and the compiler doesnt know which one to use, so you need to hint the compiler.
|
|
|
|
|
uus831 wrote: Your problem here is that there are several definitions of A_BUGFIX that can be used in that line
And possibly the operator + is overloaded than A_BUGFIX, as the OP error message shows that the identifier of the error as '+'
OP wrote: error C2666: '+' :
|
|
|
|
|
|
Hi.
I was wondering if anyone knows how to retain the default button function on a dialog? After I push the cancel button, if I show the dialog again (showwindow), the OK button no longer has the default "status" and so pushing the return button after entering something into an edit box does not automatically push OK but Cancel now.
Is there a way that when I show the window,I force teh OK button to have teh default button status everytime?
Thanks in advance!
Stan the man
|
|
|
|