Simple Little Registry Editor - New Release

Posted by Bruce Eitman on Geeks with Blogs See other posts from Geeks with Blogs or by Bruce Eitman
Published on Mon, 19 Nov 2012 17:40:49 GMT Indexed on 2012/11/19 23:03 UTC
Read the original article Hit count: 368

Filed under:

I have posted a new release of the Simple Little Registry Editor found in Windows CE: Simple Little Registry Editor

This release fixes a problem with writing DWORD values when the most significant bit is set.  The application uses RegistryKey.SetValue.  There seems to be a problem with how the .NET CompactFramework (and the full framework) handle the second argument during the call which causes an exception.

So the following does not work:

RegistryKey.SetValue( "TestValue", 0xFFFFFFFF, RegistryValueKind.DWord );

But, this does:

RegistryKey.SetValue( "TestValue",unchecked((int) 0xFFFFFFFF), RegistryValueKind.DWord );

Copyright © 2012 – Bruce Eitman
All Rights Reserved

© Geeks with Blogs or respective owner