user5, I think you should take a deep breath and start again. Right back to your first post -
I have a Lazarus 1.0.10 program running on a 32-bit computer that I would like to work on in Lazarus 2.2.6 (32/64) on
a 64-bit computer and it loads okay but when I try to compile or build it then I always get the error message shown below
from winlazfileutils.inc.
Firstly, what operating system are you using, you seem to be quoting both Windows and Linux conventions further down ?
Secondly, no error message is shown, you have pasted what looks like a two line bit of code that might generate an error but no sign of the error message it self. Important aspect, is this error generated when you
compile or when you
run the app ?
I have tried to research Utf8 and it seems to me
that it refers to text or strings. It also appears that the error occurred because the compiler was unable to create a folder
called Directory5.
I am pretty sure the compiler was not trying to create a folder ("folder" ? Hmm, Windows ?). If there is a create folder problem it will happen at run time IMHO.
Depends on whether its a compile time or run time problem. If it generates an error at
run time, it will almost certainly be because you are running the app from a place (on your file system) where an app, running with your permissions, cannot write. Perhaps a read only area or an existing directory ?
Alternatively, if its a compile time error, the compiler should give you a meaningful reason for the error. ForceDirectoriesUtf8() is a normal function from the LazFileUtils unit, nothing special about it. All UTF8 means in this context is to use the version of FoceDirectories() that is capable of writing a dir name containing UTF8 characters.
Please review what you have told us.
Davo