BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

scan reigstry and repair

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI
View previous topic :: View next topic  
Author Message
bluvia
Guest





PostPosted: Mon Oct 16, 2006 2:24 am    Post subject: scan reigstry and repair Reply with quote



I try to make a registry scan program to find corrupted keys

I have problems following code It must be correct but I face this error
message

I didnt get it why ?

const Root : Array[0..3] of Char = ('A', ':', '\', #0);
function TForm1.DoAnalyzeValue(const Key, Value: String): Boolean;
var
DriveType: UINT;
Path: String;
FileName: String;
begin
Result := TRUE;

{ Verify if the string can be treated as path (and file name)}
if Length(Value) < 3 then Exit;
if not (UpCase(Value[1]) in ['C'..'Z']) then Exit;
if Pos(';', Value) > 0 then Exit;
if Pos(',', Value) > 0 then Exit;
if Pos(' ', Value) > 0 then Exit;
if (Value[2] <> ':') or (Value[3] <> '\') then Exit;


====> Root[0]:=Value[1]; //is there wrong thing here ? // error
message : left side can not be assigned to

DriveType := GetDriveType(Root);
begin
if (ExtractFileExt(Value) = '') then
begin

I couldnt run because of error message so I have deleted this line but
when I run my program , It can not find corrupted keys I didnt get it
why ? .
Back to top
Riki Wiki
Guest





PostPosted: Wed Nov 22, 2006 9:13 am    Post subject: Re: scan reigstry and repair Reply with quote



Hoi

You need to repost your question in newsgroup b.p.d.nativeapi.win32 because
this newsgroup do not officially exist.

How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.