How to open registry file both ASCII and Unicode versions
From: JohnH (GoOnSpamMeIf_at_You.dare)
Date: 05/30/04
- Previous message: Internet Citizen: "Weird memory leak"
- Next in thread: Joseph M. Newcomer: "Re: How to open registry file both ASCII and Unicode versions"
- Reply: Joseph M. Newcomer: "Re: How to open registry file both ASCII and Unicode versions"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 30 May 2004 21:30:32 +0100
Hi,
In my program i need to open a windows registry export file (both older
ASCII REGEDIT4 and unicode regedit 5 formats) and parse the file for my
programs requirements.
The project is not and cannot be built as unicode (for other reasons).
Once the file is opened I need to parse the file, read keys + values
etc...
Question is how do i do this?
I have used CStdioFile, open as typeBinary and then
fgetws(wcBuffer, nMax, importFile.m_pStream)
Which works for unicode files, but how do i test whether a file is ASCII
or Unicode in the first place?
Any help would be much appreaciated,
Thanks in advance
-- John
- Previous message: Internet Citizen: "Weird memory leak"
- Next in thread: Joseph M. Newcomer: "Re: How to open registry file both ASCII and Unicode versions"
- Reply: Joseph M. Newcomer: "Re: How to open registry file both ASCII and Unicode versions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|