Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 11th, 2008, 4:51 AM   #1
vishal
Newbie
 
Join Date: Feb 2008
Posts: 3
Rep Power: 0 vishal is on a distinguished road
Problem with Vwindows Vista

Hello everybody,

I am using REGSETVALUEEX function to update registry at run time. when I execute the program on Win Xp I am getting the proper result but the same EXE is not updating the registry on Windows Vista.
Please help me ............... if there is any other method for VISTA..

Thanks...

waiting for reply......
vishal is offline   Reply With Quote
Old Feb 11th, 2008, 5:29 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,198
Rep Power: 5 grumpy is on a distinguished road
Re: Problem with Vwindows Vista

Without seeing a small and complete sample of code that exhibits your problem, and some indication of what errors are being reported to RegSetValueEx() nobody can begin to help you.

It is possible that security settings have changed between XP and Vista, and you're trying to change registry entries that are inaccessible to you (or the user running the program) under Vista. Again, you will be able to get information on what's happening by checking for errors that occur.
grumpy is offline   Reply With Quote
Old Feb 11th, 2008, 6:35 AM   #3
vishal
Newbie
 
Join Date: Feb 2008
Posts: 3
Rep Power: 0 vishal is on a distinguished road
Re: Problem with Vwindows Vista

Please refer this code. If i debug this code then it is working fine but when I execute the generated EXE its not working.

Thanks...

procedure TForm1.Button1Click(Sender: TObject);
var
HKR : HKEY;
str1,str2 : String;
begin
str1 := 'Fontname';
str2 := 'Font_FIle_Path';
REGOPENKEYEX(HKEY_LOCAL_MACHINE,'Software\Microsoft\Windows NT\CurrentVersion\Fonts',0,KEY_ALL_ACCESS,HKR);
if HKR = 0 then
exit;
if REGSETVALUEEX(HKR,@STR1[1],0,REG_SZ,@STR2[1],LENGTH(STR2)+1) = ERROR_SUCCESS then
showmessage('Registry updated');
end;
vishal is offline   Reply With Quote
Old Feb 14th, 2008, 12:27 PM   #4
hunter123
Programming God
 
hunter123's Avatar
 
Join Date: Feb 2008
Location: Indiana
Posts: 4
Rep Power: 0 hunter123 is on a distinguished road
Re: Problem with Vwindows Vista

well, sence vista is very new there are some things wrong with it so that may be the problem? but i am not for sure
hunter123 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Challenging Programming Problem - "Pinball Ranking" Sane Coder's Corner Lounge 38 Jan 15th, 2008 5:16 PM
Problem solving ReggaetonKing Software Design and Algorithms 7 Jan 4th, 2008 1:49 PM
Vista Sound Driver Issues (Creative Cards) Ghost Coder's Corner Lounge 3 May 31st, 2007 2:36 PM
cgi/perl script + IE problem joyceshee Perl 2 Jan 24th, 2006 11:10 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:14 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC