With VS2008 it adds a manifest to the application to make them Vista/7 compatable so virtual store gets disabled. So one solution is to make sure the manifest doesn't get added.
The better solution is to fix the underlying problem. Virtual store isn't guaranteed to last very long. It was added to Vista to ease the transition for legacy applications but it is only meant as a short term solution. You should actually get your application
to place per user files in their profile or even figure out how the security functions in Windows work and give standard users write access to just your application directory.
Fixing the problem, in my opinion, is better than relying on a feature which may not be in the next version of Windows.
Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my
posts is to aid in the learning process.
Visit my (not very good) blog at
http://c2kblog.blogspot.com/