How to split LPCTSTR with MS C 2008?
Posted on 2011-09-14
I’m programmer with 10+ years in industry, but totally new to MS C 2008 and I need help.
I have a variable and here you a sample value
LPCTSTR sPicFiles =”C:\Temp\Pic001.tif, C:\Temp\Pic002.tif, C:\Temp\Pic003.tif, C:\Temp\Pic004.tif”
I need a code which to give me follow functions:
1. To split the sPicFiles to somethink like: sPic= =”C:\Temp\Pic001.tif”, sPic= =”C:\Temp\Pic002.tif” .
2. The structure should be able to convert to LPCTSTR for single elements
3. To have options to loop in structure in same order on which it is created
4. I do not know how much elements I’ll have in structure, or may be I know if I count the comma before create the structure.
Please give me example code.