I have a class which has constructor to parse command line arguments.
I have command line parameters like this:
inputfile.png destfile.png (12,14,35)-(13,16,42)-0000FF (102,104,55)-(103,106,65)-00FFFF
I want to separate each of the arguments which have - or , . using 1) "-" delimiter and then 2) the dash delimiter. This code bellow seems not working. How to fix it?
I have changed the type from _TCHAR to char and now argv contains only first character of the argument. How to correct to get whole argument and to pass it as string to istringstream?