Groups | Blog | Home
all groups > dotnet compact framework > september 2005 >

dotnet compact framework : VB.net & weird registry/string issue


Sean D.
9/14/2005 11:17:08 AM
I found the sample code on Microsoft's site for accessing the registry on the
PocketPC device. I think it's the signature sample code. The code works
great except for one weird flaw.

I'm trying to use the Registry.GetString, and it gets the string but drops
the closing quotation mark.

So my variables get filled with: "serveraddress
instead of: "serveraddress"

the only work around I have for this is dumping the string into a textbox
control and then saving it back out to my variable. Then it corrects the
string, but this seems like a hack.

Daniel Moth
9/14/2005 7:42:33 PM
Try trimming the nulls it has on the end...

Better still, use the registry classes from SDF from opennetcf...

If you are still having trouble, post the code or a link to it...

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

[quoted text, click to view]

AddThis Social Bookmark Button