How much data can be stored by CString Type varible
-
hi I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable); but is file is big all data is not shown
-
hi I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable); but is file is big all data is not shown
rajneshmalik wrote:
I want to know How much data can be stored by CString Type varible.
Probably depends of your system memory since CString allocates the internal buffer on the heap, I suppose. but
rajneshmalik wrote:
I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command
does the above really make sense?
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.
[my articles] -
hi I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable); but is file is big all data is not shown
theoretically, up to 2GB.
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
hi I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable); but is file is big all data is not shown
-
What about the text limit of the CEdit control? The default limit is something like 64K iirc, have you set the limit of that large enough to view 120mb worth of text?
Jimmanuel wrote:
What about the text limit of the CEdit control? The default limit is something like 64K iirc...
It depends on the OS. Win98 and before had a 64KB limit.
"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
-
Jimmanuel wrote:
What about the text limit of the CEdit control? The default limit is something like 64K iirc...
It depends on the OS. Win98 and before had a 64KB limit.
"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
Then use a CRichEdit control. That being said, it is horrible design to put 120Mb into an edit control
-
Then use a CRichEdit control. That being said, it is horrible design to put 120Mb into an edit control
Perhaps you meant to reply to the OP.
"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