Delphi 2006, Windows XP-PRO

I'm using ExecuteFile from fmxutils to launch documents that may be 
of any type (eg .doc, .jpg or even html links) by simply 

putting the full path in parameter 1

eg

    ExecuteFile(s,'','.',0);

where s may be something like 'm:\project_library\example.doc'

ie I'm trying to do the program equivalent of double-clicking on the 
file in Windows explorer.

This always works but the problem is that sometimes, although the 
document displays OK, the calling program closes (or, if run 

from the IDE, causes an access violation).

I suspect that the length of the filename is an issue but I can't 
prove it.

Does anyone know what the problem is?

Is there another way of achieving what I'm trying to do? (I 
specifically do NOT want to have to know what application to call)

Thanks in advance.

Jeff


Reply via email to