Computing.Net > Forums > Windows NT > TADO connection and Reg read proble

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

TADO connection and Reg read proble

Reply to Message Icon

Name: Drb2k2
Date: February 7, 2005 at 05:04:42 Pacific
OS: Win NT 4
CPU/Ram: 1gig
Comment:

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 call

if 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 then

blah 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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: TADO connection and Reg read proble

Can't connect to the POP3 Server Error 0 www.computing.net/answers/windows-nt/cant-connect-to-the-pop3-server-error-0/11504.html

What is the difference between POP3 and IMAP? www.computing.net/answers/windows-nt/what-is-the-difference-between-pop3-and-imap/8592.html

Cant connect to internet www.computing.net/answers/windows-nt/cant-connect-to-internet/3251.html