|
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
|
|
|
|
|
GDI+ has the ability to load jpgs, etc and show them.
Also, IPicture.
There are also many articles here on image work - you should be able to take a lot of that work and put it to use.
A quick search gives this article, which hopefully will help:
http://www.codeproject.com/KB/graphics/trans_cimage.aspx[^]
Its main focus is on transparency, but also includes a lot of useful information.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Thanks now its working,
after this i want to save this in database.
i m using MS-Access database and CRecordSet type of class for database,
now plz tell me how can i save this in database and see in future.
and also tell me how can it is applicable for all other Computers also.
i mean the saved picture show on diffrent computers is i run my project on diffrent computer.
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
|
|
|
|
|
That, I have no idea.
I know there is a BLOB type of database data, so you could save the picture as a bitmap there, now you've loaded it in to your app. I wouldn't be surprised to find there is even some sort of picture type, perfect for your needs.
Having never worked programmatically with databases, that's all the help I can give. I'm a near-the-metal-programmer, not a db / webby one.
I'd suggest doing a little research, then asking a separate question about storing a picture in a database.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Does this code helpful?
CImage m_Image;
m_Image.Load(_T("c:\\2.jpg"));
m_Control.SetBitmap(m_Image.Detach());
|
|
|
|
|
Hi Experts,
I m using CRichEditCtrl for my application.
in which I paste the clipboard data using program.
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.
|
|
|
|