How Copy TCHAR* Buff into CString Variable
-
Hi! All I want to copy Some data which is stroed in TChar Buff in to a CString Variable. How i do this. The TChar Buff has Raw data in which there are number of zeros present between raw data Ansh
aaaan wrote:
TChar Buff in to a CString Variable.
C'tor of
CString
or assignement operator will take care of that.e.g
CString csString(pCharArr);
or
Cstring csString = pCharArr;aaaan wrote:
The TChar Buff has Raw data in which there are number of zeros present between raw data
Can you explain this?
Prasad Notifier using ATL | Operator new[],delete[][^]
-
aaaan wrote:
TChar Buff in to a CString Variable.
C'tor of
CString
or assignement operator will take care of that.e.g
CString csString(pCharArr);
or
Cstring csString = pCharArr;aaaan wrote:
The TChar Buff has Raw data in which there are number of zeros present between raw data
Can you explain this?
Prasad Notifier using ATL | Operator new[],delete[][^]
prasad_som wrote:
Can you explaing this?
Meaning that you can't do something like:
CString str = "Now\0is\0the\0time\0for\0all...";
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
prasad_som wrote:
Can you explaing this?
Meaning that you can't do something like:
CString str = "Now\0is\0the\0time\0for\0all...";
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
ya i m unable to store data like CString str = "Now\0\0\0\0\0is\0\0\0\0the\0time\0for\0all..."
Of course. Why would you think it was even possible?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Of course. Why would you think it was even possible?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
ya I know it is not possible directly to CString variable. Bt i able to forcefully insert the raw data in CString variable taking data in a loop up to its length but it creats problem wn the length of data is very large i.e. more tn 1000 because running loop up to this limit creats problem of hanging.I want to solve this problem. if any soln pls help me.
-
ya I know it is not possible directly to CString variable. Bt i able to forcefully insert the raw data in CString variable taking data in a loop up to its length but it creats problem wn the length of data is very large i.e. more tn 1000 because running loop up to this limit creats problem of hanging.I want to solve this problem. if any soln pls help me.
Have you tried using
memcpy()
?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne