yes, I am not sure if ansireplace needed on delphi ??? can you try on your host without using ansireplace, if works than perfect solution.Does your explanation mean, that the RegReadInternal on my system reads literally %USERPROFILE%\Desktop,
Yes I am already satisfied, but I (personally) am not selfish and seeking for perfect solution on delphi to avoid future issues by others.and on your system the correct path?
Than we can be satisfied, as you already exoplained then the replace code will do nothing.
on the registry of freshly installed XP-enu (and tr) (32bit, 64bit etc.) the default values are REG_EXPAND_SZ with %USERPROFILE%, example: %USERPROFILE%\Start MenuBTW: If I look into my registry by regedit, I see also the complete path.
maybe german xp ?Why does Billy's API substitute with %UserProfile% on my system, but does not on yours?
ps: see you later, I need to go.