I just wanted to let you know that this was resolved. It turns out that I have a buggy compiler and recent changed to shlwapi .. were the cause of my problem . Anyway I wanted to thank you again for your help. Tony Lambregts