forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS 4.0 and Windows 2003 server

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
w_marquardt777
Newbie


Joined: 12 Jan 2005
Posts: 3

PostPosted: Wed Jan 12, 2005 5:47 pm    Post subject: VDS 4.0 and Windows 2003 server Reply with quote

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
View user's profile Send private message
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Wed Jan 12, 2005 6:47 pm    Post subject: Reply with quote

What sort of app. and what error messages are they?

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Wed Jan 12, 2005 11:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
LOBO
Valued Contributor
Valued Contributor


Joined: 14 Mar 2002
Posts: 241
Location: Wilmington, Delaware, USA

PostPosted: Wed Jan 12, 2005 11:11 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Jan 13, 2005 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
w_marquardt777
Newbie


Joined: 12 Jan 2005
Posts: 3

PostPosted: Thu Jan 13, 2005 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri Jan 14, 2005 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Jan 14, 2005 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group