Resolving %CommonProgramFiles%
Hi
Been a long time since I coded anything, but revisiting an old project to make it work on Vista has thrown up a problem I cannot remember how to resolve :)
I'm fetching a registry key containing "%CommonProgramFiles%\System\wab32.dll"
LoadLibrary() on this string fails. Is there a library function to resolve %CommonProgramFiles% to its actual location (i.e. c:\program files\common in most cases)
Thanks
Jase
Re: Resolving %CommonProgramFiles%
Quote:
Originally Posted by jase jennings
Is there a library function to resolve %CommonProgramFiles% to its actual location (i.e. c:\program files\common in most cases)
Yeah, ExpandEnvironmentStrings is a handy function.
Re: Resolving %CommonProgramFiles%
Thankyou
Exactly what I was looking for. All is well now :)
Jase