| View previous topic :: View next topic |
| Author |
Message |
w_marquardt777 Newbie
Joined: 12 Jan 2005 Posts: 3
|
Posted: Wed Jan 12, 2005 5:47 pm Post subject: VDS 4.0 and Windows 2003 server |
|
|
Hi,
I haven't used VDS on XP or Windows 2003 server. I created a small app for 2003 server and am getting error messages. Is there a compatilbity problem with VDS V4.0 and 2003 server? Is there a special way that the dll needs to be registered to work with 2003?
Has anyone out there used this version with 2003 yet and not encountered problems?
Is V 5.0 better on 2003?
THanks for taking the time with this.
Regards,
BIll |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Wed Jan 12, 2005 6:47 pm Post subject: |
|
|
What sort of app. and what error messages are they?
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Wed Jan 12, 2005 11:08 pm Post subject: |
|
|
I can report that I use VDS 5 apps on a Server 2003 machine every day and they work very well.
FYI _________________ Joe Floyd |
|
| Back to top |
|
 |
LOBO Valued Contributor


Joined: 14 Mar 2002 Posts: 241 Location: Wilmington, Delaware, USA
|
Posted: Wed Jan 12, 2005 11:11 pm Post subject: |
|
|
w_marquardt777,
What are the error messages being returned? Are you using any external dlls?
Last edited by LOBO on Thu Jan 13, 2005 12:16 pm; edited 1 time in total |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Jan 13, 2005 10:46 am Post subject: |
|
|
It's a while ago, but when I took over the VDS 4 code in order to develop VDS 5 I seem to recall that the registry access code requested read/write access even to read the registry. This is a problem that VDS inherited from Delphi. I fixed the problem in the runtime for VDS 5, but it means that there is going to be a problem for VDS 4 and earlier apps that run under a restricted account on any NT family operating system, if they access the registry.
I run VDS 5 apps on my company web server running Server 2003 with no problems whatever. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
w_marquardt777 Newbie
Joined: 12 Jan 2005 Posts: 3
|
Posted: Thu Jan 13, 2005 2:47 pm Post subject: |
|
|
When the program didn't work out, I was out of time and didn't record the errors.
I'll be back at the clients today and get the accurate error message.
It's encouraging that people are having success with VDS on 2003. Maybe I just have something wrong with the *.exe.
More soon.
THanks,
BIll |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Jan 14, 2005 4:27 am Post subject: |
|
|
Hi Jules,
I don't think it's really a bug in VDS or DELPHI. The permissions on Windows accounts can limit certain user accounts to what can be accessed via the registry, especially the HKEY_LOCAL root. To access those registry entries with an account with limited priviledges you can use this in delphi:
| Code: |
var
RegKey: TRegistry;
begin
RegKey := TRegistry.Create;
RegKey.RootKey := HKEY_LOCAL_MACHINE;
RegKey.Access := KEY_READ;
RegKey.OpenKey('\Software\Company\Software\',False);
....
|
The specific RegKey.Access property allows you to set the permission level of registry access that is occuring, otherwise it is assumed the connection to the registry is going to be for both reading and writing and Windows will prevent that if the User account is not allowed to write to the HKEY_LOCAL tree.
To bypass that need entirely you should write registry settings for multiuser systems to the HKEY_CURRENT_USER tree and avoid reading/writing on the HKEY_LOCAL_MACHINE tree. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 14, 2005 9:48 am Post subject: |
|
|
You forget that the VDS runtime is developed using Delphi 2. The Delphi 2 Registry object doesn't have an Access property, and the OpenKey method requires all access. Perhaps it can't be called a bug in Delphi 2, since I'm not sure whether Windows NT existed at the time it came out, but it is certainly a problem for any program created using earlier versions of Delphi that run on NT based operating systems.
Actually, I wasn't aware that the Access property existed. VDS 5 uses a new method cribbed from the Delphi 6 runtime code called OpenKeyReadOnly. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|