C# registry problem

  • Thread starter Thread starter Dean Bortell
  • Start date Start date
D

Dean Bortell

I have a program that encrypts a datetime objects "to
long datetime string" string to and encrypted sequence.
The problem is this: if I use the following source code
it works (key is declared earlier and works fine):

string valueName= "Date Installed";
key.SetValue(valueName, "²ã95ì.*úÞx e¸<¡uO2s¯EÔ");

The problem is this code doesn't:

string valueName = "Date Installed";
object s1 = "²ã95ì.*úÞx e¸<¡uO2s¯EÔ";
//(I have tried string instead of object)

key.SetValue(valueName, Convert.ToString(s1));

When I check the registry in this case, only "²ã95ì.*úÞx"
was written. Please help if you can! This is driving me
crazy!
 
Dean said:
When I check the registry in this case, only "²ã95ì.*úÞx"
was written. Please help if you can! This is driving me
crazy!

Does your encrypted string contain newline characters?

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Back
Top