Most likely any windows api needs a pointer to a null terminated string. So if you want to parse a string,

1) define strFileName as an ASCII string withz maybe 256 characters of length
2) Your StrPtr approach should work then.

Look into the source of my TBDI module. Look where I load the effect files. Should work similar.