Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETTING USER NAME FROM WINDOWS 2000 FAILS
Message
From
12/06/2001 22:33:38
 
 
To
12/06/2001 19:21:32
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00518668
Message ID:
00518699
Views:
7
>I have an application written in VFP with Visual FoxExpress 5.01 it worked well in Windows 95/98/NT but when I installed it in a computer with Windows 2000 server or workstation it fails to get the network user name. Besides that, it can not save the preferences I choose in the "options" bar from de File option of the main menu of my application. For example, I always use the BRITISH date option however when I select it and then I click on the OK button it doesn't seem to save the changes as the default option back again AMERICAN and I can not make it to change it. All this strange things happen with only with Windows 2000. Does anybody knows how can I fix that? I have the source so if someone can help it with it I would appreciate it very much.

If you are using VFE5's built-in user/password controls and security, it picks up the W2K user name and puts it in as the VFE user name by default when you log into your application. This works on my W2K machine.

If you're having problems you can use the result from SYS(0) to get the user name.

It's been a while since I looked into the options settings for VFE5 but there are two things you'd need to look into:

1. There were quite a few class library updates for VFE5. If you're using 5.01 you've probably got a fairly late set of them but make sure you're using the latest. I seem to recall that one of the updates addressed an issue with various SETs like SET DATE.

2. Again, if I recall correctly VFE options are stored in Registry keys. The user would need to have permissions to write to the Registry on the local machine in order to store these values. You could test by trying to save the options when logged into the computer as (local) Administrator or equivalent.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform