Hi,
For me code:
http://msdn2.microsoft.com/en-us/library/ms646829.aspx
works fine also for Vista.
Checked on VS2005 with SDK for Vista
Marcin Domaslawski
"JohnD" <johnd@xxxxxx> wrote in message
news:umMgLrg7HHA.4880@xxxxxx
> Hello All,
>
> I posted this on the programmer.ui group and got no help, so I'm
> cross-posting here. Hope that's OK.
>
> I've got a problem with GetOpenFileName on Vista.
>
> It never recognises the lpstrInitialDir field of the OPENFILE structure
> and
> always starts off in the current working directory.
>
> The code works fine on XP and the other systems.
>
> Anyone seen this and worked around it?
>
> /john