Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi all,
I'm writing a program written in DELPHI. It works perfectly on all windows o/s except for NT.
Basically I try to read from the registry with this callif RegOpenKeyEx(HKEY_LOCAL_MACHINE,'SOFTWARE\\My program Demonstration Beta 1.1',0,KEY_QUERY_VALUE,Result2)=ERROR_SUCCESS then
if RegQueryValueEx(Result2,'MainDBPath',nil,@aType,@aTmp,@aCb)=ERROR_SUCCESS thenblah blah blah
It always fails on NT, although it can read up to HKEY_LOCAL_MACHINE -- Software
I've tried to skip this for the moment by specifying the path that should be read (Its the location of a .mdb database)
The program then fails when a Borland TADOConnection object tries to connect to the database. It always says "access denied"
I'm sure that the two are related and are due to some permissions not being set properly.
Does anyone know why this is happening, or which permissions need to be set?
Any help would be much appreciated
Cheers
DRB2k2

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |