Hi,
I have fixed the problem for you.
The main problem was the paths to the FX file.
I have updated 3 line for you and i have marked them with //Lyrical so you can quickly find them.
strcpy actually adds the additional paths together recreating the variable.
AppPath(path,srchpath);
this produced a string of
"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\"when you use this
pTV->SetDebugFile(strcat(srchpath, "\\debugfile.txt"));
you actually end up with srchpath being
"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\\debugfile.txt"when you came to use this file with the shader the path to the shader became
"c:\Documents and Settings\Lyrical\Desktop\f_u_l_l\Debug\\debugfile.txt\\FX\First.fx"also the strcpy function made srchpath also point to this path.
NOTE:
You will need to move the FX folder into the DEBUG folder should you wish to use your version of this code.
I have added the full working source here for you
www.fastrightstudios.co.uk\tv3d\f_u_l_l.rarGlad to help
Enjoy Truevision