Split a string
-
Hi all. I am having a string.. say for example "bangalore". I want to display only first 6 character i.e "bangal". I am trying with different method ..I am getting the last 6 character i.e "galore".can anyone help me.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
-
Hi all. I am having a string.. say for example "bangalore". I want to display only first 6 character i.e "bangal". I am trying with different method ..I am getting the last 6 character i.e "galore".can anyone help me.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
char chBuffer[25]={0};
char* pchString = "Your String";
lstrcpy(chBuffer, pchString);
chBuffer[6]=0;Now: ----- chBuffer == "Your S" and pchString == "Your String"
-
Hi all. I am having a string.. say for example "bangalore". I want to display only first 6 character i.e "bangal". I am trying with different method ..I am getting the last 6 character i.e "galore".can anyone help me.. thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
manju#123 wrote:
say for example "bangalore". I want to display only first 6 character i.e "bangal".
I know you are using MFC. So,
CString str = _T("Bangalore");
AfxMessageBox(str.Left(6));Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
manju#123 wrote:
say for example "bangalore". I want to display only first 6 character i.e "bangal".
I know you are using MFC. So,
CString str = _T("Bangalore");
AfxMessageBox(str.Left(6));Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]