Thanx Salem for your consulting.
Yes iíve heard that goto is not good. Iím gonna rethink a way to do without them.
Getting rid of those goto's would be a good move.
Didnít knew about strrchr(). tnx.
Better yet, how about using strrchr() to find the LAST dot in a filename, not a home-grown loop to find the first dot.
What must i do to prevent that warning C4715 here?
> int StartWC(char* fpath, int ti)
All very well returning 0 in the if, but what garbage value are you returning in the else part?
Can u please explain that more?
> return pVal;
> delete pVal;
I don't think that delete is going to do you any good.