🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Parsing a registry file ???

#7340
From: Bob Gonder
Date: Tue, 08 Feb 2005 18:23
8 lines
1341 bytes
"marc" <NOSPAM_marc.beaudry@gmail,com> wrote:

>I am trying to open a file that I exported from regedit.exe and 
>I am getting garbage.   If I parse a regular text file then my 
>code work fine.

Regedit exports *.reg files as unicode strings.
You need to parse them using wide chars instead of normal chars.
Technical Details
Message-ID: <gl0i01559tvvsneltmapr7064ju1jfnn4g@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e84bf15728e20ff1
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Parsing a registry file ???
Date: Tue, 08 Feb 2005 10:23:01 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <gl0i01559tvvsneltmapr7064ju1jfnn4g@4ax.com>
References: <4208ebcf$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.252
X-Trace: newsgroups.borland.com 1107886979 67.77.147.252 (8 Feb 2005 10:22:59 -0800)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.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