|
Did you see Database section on the codeproejct?
|
|
|
|
|
I am doin the following...
string f_no;
int file_num=1
...
path.insert(path.length()-4,itoa (file_num,fno,10));
I get error as...
error C2664: 'itoa' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
</char></char,struct>
What cud be the problem? Please letme know.
THANKS
|
|
|
|
|
|
I had also tried to do that but on giving that I get...
error C2664: 'itoa' : cannot convert parameter 2 from 'const char *' to 'char *'
Conversion loses qualifiers
|
|
|
|
|
Ah ofcourse. My misstake.
Use a stringstream instead as proposed in another reply.
|
|
|
|
|
Why don't you use a std::strstream object for the conversion?
For instance:
strstream sr;
sr << 1 << '\0';
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
The Problem is that itoa can not convert "int to basic string".
Syntax
char *_itoa(
int value,
char *str,
int radix
);
and Answer is try this
char strBuffer[20];
int iValue = 3445;
_itoa( iValue , strBuffer, 10 );
string strTmpValue(buffer);
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
And see here[^] for more info.
|
|
|
|
|
I'm a C, now C++ programmer. I have copy of Visual C++ 6.0. What are some books that you would recommend to get up to speed on learning how to use that software programming windows applications.
Thanks ahead of time
|
|
|
|
|
|
VC++ in 21 days, Unleashed Visual C++ and many internet sites (use google) one of the best, this one
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
|
Hi,
How can I display the progress with tree control while tree loading?
e.g
If drive "C" is loading, How can I display the progress just before the TreeItemText.
|
|
|
|
|
Click Here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Cool. 5 from me.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
I want just before the ItemText and after the +
|
|
|
|
|
You will need to go through the article and see how it has been done and modify it to suit your needs. Shouldn't be such a daunting task though. All the boilerplate stuff has been done for you by somebody else already. Be happy about that and don't expect spoon-feeding.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi Experts,
I m using CRichEditCtrl for my application.
in which I paste the clipboard data into the control using paste method.
but there is limitation of Data displayed and copied..
for example > If I copy a file data of size about 65KB then it works fine..
but when I copy full file ( more than 65 KB about 120 KB size)
then it takes only 65 KB and remaining data is neglected.....
so
plz Help me I want to increase my Rich edit's capacity or suggest any
other control that have more ability.
ur reply matters me....
I m waiting.,..
Thanks in advance.
|
|
|
|
|
The only limitation may be physical memory of your system.
|
|
|
|
|
but when i copy same data and paste it in other document, the whole data get copied........
|
|
|
|
|
|
Same question different user ID but the answer is same
use "EM_EXLIMITTEXT"
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Rule #1 - You must wait longer than 1 hour before posting same question again.
Mahesh_Pawar wrote: ...then it takes only 65 KB and remaining data is neglected.....
Are you sure you are not using a regular edit control? It maxes out at 64KB on Win9x machines.
Otherwise, if you have sent the control a EM_EXLIMITTEXT message with lParam as 0 , the control will default to 64KB.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
I m using a SDI type of application in VC++2005,
in onw form i m using a Picture Control for show passport size picture, and a button for open and select the picture from computer.
but i dont know how can i set selected picture in Picture Control.
Please help me for this,
Thanks in Advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|