Hi Shawn, thanks for the reply

> The obvious question is, "can you show us your code?" I'm guessing
> this is related to a character-width or a variable length problem.
> Depending on the actual stripping method this could also be a result
> of out-of-memory problems.
The snippet below is essentially the only bit of relevant code, it simply 
copies back the line without any characters of ASC < 32

Do While Not(fileIn.AtEndOfStream)
   line = fileIn.ReadLine

   Rem Strip out junk characters
   For i = 1 To Len(line)
      If Asc(Mid$(line, i, 1)) > 31 Then       'If char is not a visible 
character
         strCleanLine = strCleanLine & Mid$(line, i, 1)
   End If
Next i
fileOut.WriteLine (strCleanLine)
Loop

> Attachments are not allowed through to the list, so if you attached
> something for reference I recommend you either post it in the files
> area or to your own website, if possible.
Not to worry, it was just a cap of the registry as viewed in VS C++ editor, to 
show that there was no problems with the source file (i.e. there was nothing 
missing from it).

> Be careful with Ascii 9 - it's a tab, and is used by some string
> variables and within certain wrapping values. Sometimes a null
> character (ascii 0) will also screw up the textstream object if it's
> between spaces. TextStream views this as an EOL and will choke.
Aha, that sounds like a lead to follow. That could well be the cause.

> Lastly, I'll ask plainly - what the heck are you thinking? You can't
> *really* need all that information from the entire hive, can you?
> Can't you enumerate certain hives or an array of branches and their
> children? I can't conceive of anyone - even MS - needing access to
> the entire HKCU hive.
I'm taking a snapshot of the system, so I can compare it to another snapshot of 
the system at some other time, to detect what keys have been added, deleted or 
changed. As I don't know what will get changed, I'm obliged to take all of 
HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER & HKEY_CLASSES_ROOT. I took the model 
from VeriTest's Install analyser, which also enumerates those three hives, on 
the assumption that the author of that knew what he was doing. I'm sure there 
are areas that I could discard, but I don't know enough about the reg structure 
to be sure, and since the app doesn't need to be super-fast, it seemed easier 
just to export and reprocesses the whole lot.

It's probably not a great solution, but I'm fairly new at this and just don't 
have the experience to do a more sophisticated solution in a reasonable 
time-frame :)

> For neat samples on registry enumeration look at the mRA_Startup
> sample here:
>    http://ReliableAnswers.com/VB/Samples.asp#mRA
> It enumerates certain patterns within the HKCR hive to build a
> validated dependency/references listing for your VB projects. It
> uses the (mostly) logical structure to track the correct children,
> too, so as to find only the information it actually needs.
Great, I'll check that out.

Once again thanks for the (quick!) reply. I'll look into the issues with the 
tabs you mentioned

Regards
Colin


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm







'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to