Ok let me try to help you althought your source code is not so clear.
What is Path ?
Ok ok every programmer gets its own behavior.

If you use CString objects, it's very simple to concatenate or add strings.
I suppose you want to generate the full path including Pathname and Filename ?
Once you've extracted CString Path just add Filename to it :
CString Path, Filename;
Path = ..... ;
...
Filename = ....;
...
Path += Filename;

hope it helps !


C++ developer
Faculté de Médecine
27 Bd Jean Moulin
13385 Marseille cedex 05