I did check up your profile - the Signor wasn't a lucky guess. You almost had Senor until my brain started firing again.
As for you having bad times about your Inglesi[*] - I've not noticed you making mistakes, and I'm pretty critical. And it's hard enough for me to understand some of the butchered english here. I'm curious as to whether being a second language makes them easier or harder for you to parse.
If they give you grief, ask them to translate their complaint into your language. Or have a on me.
ps, Check my sig!
[*] Most of my knowledge of Italian and German comes from Battle comic from my youth. I'm fully fluent in german if ever I need to capture a pigdog english airman... Shockingly, this has yet to prove useful.
Iain Clarke appearing by Special Request of CPallini.
i want to display a progress bar in listview control as a subitem.
the progress bar would continously be updated and i shouldnt use any images.
i am using vc++ 2005 and i am not using MFC.
i am using win32 programming.
i know this can be done using custom control but if any one knows more than that please reply (i.e with a smaple code)
The only way that would work would be to change the declarations to:
char i = "abcd";
char j = "ABCD";
See here for the difference in why one can be changed and not the other.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
You should never loose sight of the code generated by the compiler. In your case the Compiler will include two char arrays into the excecutable, namely "abcd" and "ABCB" The fact that you Tyedefed them as myString has confused you more than the compiler. You cannot copy i to j, because both are in memory reserved for string constants. In other words: Both are in 'read only' memory. I strongly suggest that you get a copyof the excelent book written by Brian Kernighan and Denis Ritchie about the 'C' language (Never mind CPP). And rephrase the question above after reading these books.
If you do the appropriate amount of study,you will realise that in the above example code fragments, memoryleaks are not even close to being an issue.
Not if you don't read the sticky posting called "how to get answers", and the line that says "please use meaningful subjects". I've yet to see someone post a message with a subject of "ignore this - I don't need any assistance".
But I'll be nice anyway..
1/ The numbers are different, so there will be differences.
2/ Less trivially, the first example just calls the constructor. The second example makes two objects, (obj, and a temp one), then copies temp to obj, then destroys the temp object.
If it's CPoint, then it's trivial. If it opens / closes databases, does a network operation etc, then the difference could be HUGE.
Update: See CPallini's and my conversation later. Short version: No actual difference between the two bits of code (except the numbers!)
modified on Friday, February 01, 2008 5:13:33 AM
Last Visit: 31-Dec-99 18:00 Last Update: 1-Jul-22 20:19