OpnenetCf Registry class problem.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I am using the Registry class by OpenNetCF. I added the .cs file in my project and used it. But when I call functions in the class like GetValue, OpenSubKey, CreateSubKey, etc its giving me MissingMethod exception. I am using the class inthe following way:


RegistryKey myKey = new RegistryKey(0x800002, "\\Software\\MyKey",true,true); //Does not give error here

myKey->GetKey("ProjectValue"); //Here error occurs

Could you please let me know if I am "missing" out something? Also are there are documents as how to use this class, how to start with this, etc.

Please help.
Thanks in advance.

Amit Patankar
 
What kind of errors? Does the key "ProjectValue" that you are trying to
access exist? I assume the myKey->GetKey is a typo and that you mean
myKey->GetValue there. Take a look at this article and code sample for a
start:
http://www.opennetcf.org/PermaLink.aspx?guid=0b99da71-9aac-44af-ac0e-c5dbeedb898c.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

www.opennetcf.org | www.dotnetfordevices.com

------------------
Coming to the Embedded DevCon?
Make sure to attend CEA-HOL3 on Tuesday June 29 or CEA-HOL3R on Wednesday
June 30 for an OpenNETCF.org hands on lab.
Also make sure to stop by for session CEA308 on Thursday July 1st to learn
more about the real-time behavior of the .NETCF.
-----------------


Amit Patankar said:
Hi I am using the Registry class by OpenNetCF. I added the .cs file in my
project and used it. But when I call functions in the class like GetValue,
OpenSubKey, CreateSubKey, etc its giving me MissingMethod exception. I am
using the class inthe following way:
RegistryKey myKey = new RegistryKey(0x800002,
"\\Software\\MyKey",true,true); //Does not give error here
myKey->GetKey("ProjectValue"); //Here error occurs

Could you please let me know if I am "missing" out something? Also are
there are documents as how to use this class, how to start with this, etc.
 
Back
Top