🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7339

Re: Parsing a registry file ???

#7339
From: Jonathan Benedicto
Date: Tue, 08 Feb 2005 18:17
33 lines
2337 bytes
I just tried exporting a non-NT4/w98 .reg file.

I then opened it in notepad, and it is formated in a ini-file type style. So 
you could try using TMemIniFile to parse it.

-- 
Jonathan

"Marc" <NOSPAM_marc.beaudry@gmail.com> wrote in message 
news:4208f9c5$1@newsgroups.borland.com...
>
> Hi
>
> I tried your example and it results the same as my stream
> functions.  Registry files are not basic text file, they have
> extra formatting.  Try your code you'll see the outputs are
> garbage.
>
> As for the code I posted its a stripped down version of actual
> code, less the string processing I should be doing.  Look up
> getline() on msdn its an actual function used with streams.
>
>
> I'll investigate some more, when using export in the registry
> UI there are several ways to export a reg file one of which is
> <Win9x/NT4 reg file> which strips out the formatting and then
> is readable in standard code, either fstreams or usiong the
> example you provided.  The regedit command line documetation
> is hard to come by, so if you know of a good place to find
> regedit documentation let me know.
>
> again thanks for your help.
> Marc
Technical Details
Message-ID: <42090222$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4208ebcf$1@newsgroups.borland.com> <4208efe9$1@newsgroups.borland.com> <4208f087@newsgroups.borland.com> <4208f9c5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e84bf15728e20ff1
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4208ebcf$1@newsgroups.borland.com> <4208efe9$1@newsgroups.borland.com> <4208f087@newsgroups.borland.com> <4208f9c5$1@newsgroups.borland.com>
Subject: Re: Parsing a registry file ???
Date: Tue, 8 Feb 2005 13:17:07 -0500
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 64.231.23.12
Message-ID: <42090222$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107886626 64.231.23.12 (8 Feb 2005 10:17:06 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail