hi all,
i am creating the file with the client names which i am getting from the back end[database]. The client name is having different forms i.e. it can have special characters as '-','<','&' etc. I am getting the client names in the '#' seperated array form. I am parsing the array on '#' and creating file with the parsed names.
For example; i am getting array as "aaa#bbb#ccc#". The expected file names would be "aaa.pdf","bbb.pdf" etc.
I am getting error in case the client name consists special chars. I can not insists on the change in the database side as the project is live. I would like to check the clientnmaes.
What i wanted to know is that is there any API in win32 OR is there any MFC class which can validate the name of the client ???? Or else i need to write the function which will validate the received client names in the form of '#' seperated array.
Thanks in advance.
Sanjay
i am creating the file with the client names which i am getting from the back end[database]. The client name is having different forms i.e. it can have special characters as '-','<','&' etc. I am getting the client names in the '#' seperated array form. I am parsing the array on '#' and creating file with the parsed names.
For example; i am getting array as "aaa#bbb#ccc#". The expected file names would be "aaa.pdf","bbb.pdf" etc.
I am getting error in case the client name consists special chars. I can not insists on the change in the database side as the project is live. I would like to check the clientnmaes.
What i wanted to know is that is there any API in win32 OR is there any MFC class which can validate the name of the client ???? Or else i need to write the function which will validate the received client names in the form of '#' seperated array.
Thanks in advance.
Sanjay