Re: Mapped Drives and VB6 on Vista
- From: "Bill Hileman" <discgolfdad@xxxxxxxxxxx>
- Date: Wed, 2 Jan 2008 12:29:54 -0500
"Richard J" <RichardJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ECB4C84D-953F-4AD5-AB5A-6E6E2C9D8515@xxxxxxxxxxxxxxxx
Hello team and happy new year.
I'm still working on the evaluation of Vista using our current development
environment. I have everything installed now, running the setup.exe files
as
administrator where possible.
I right-clicked on the VB6 shortcut and changed the Privilege Level to run
as administrator. Of course, I get the "a program wants access to your
computer" dialog and have to allow a Microsoft product to run on a
Microsoft
operating system (which I think is wierd).
I have shared a local folder and mapped it as my Y:\ drive; it's something
that is required for our software. I have given the administrator account
full control over the shared folder; this is also the account that I am
logged into.
I can open one of my projects up in VB6 with no errors. However, when I
run
the project, I get an error stating that it could not find a file on the
Y:\
drive. Here's a more in depth flow of what is happeneing:
- the program starts and reads an INI file on the local C:\ in a project
folder.
- if the results from the INI specify it, then we look in a Y:\ drive
folder
for another file that contains environment type variables.
- the code attempts to use the OpenFile API to determine if the file in
the
Y:\ drive folder exists.
This doesn't occur on my Windows XP machine which makes me wonder whether
I
have something on the permissions incorrect.
I can look in Windows Explorer and see the drive and see the file. The
app
calls on the OpenFile API to determine if the file in question exists or
not.
Is the problem with Vista? VB6? the API call? Or am I still missing
something with the whole folder sharing thing?
Thanks for any insight.
Richard
Solution: Log-on as Administrator and map the drive -as- the Admin. Then
when you log back in under your regular ID, it will work. Apparently this
is a -feature- not a bug. I've encountered this problem with installation
software on Vista. Makes for a nightmare with end-users.
.
- Follow-Ups:
- Re: Mapped Drives and VB6 on Vista
- From: Richard J
- Re: Mapped Drives and VB6 on Vista
- References:
- Q: Mapped Drives and VB6 on Vista
- From: Richard J
- Q: Mapped Drives and VB6 on Vista
- Prev by Date: Re: Silverlight
- Next by Date: Re: http://www.silkonroad.com/nike+shox+R5/
- Previous by thread: Re: Q: Mapped Drives and VB6 on Vista
- Next by thread: Re: Mapped Drives and VB6 on Vista
- Index(es):
Relevant Pages
|