I'm having a bit of trouble. I've been working on a project in managed C++, but have been having a super difficult time acheive what would seem to be a relatively simple objective, to update a DWORD value in the registry.
I'm using the .NET RegistryKey class, but when I try this:
I get the following error:
Can someone help me figure out what I need to do to make this work?
Thanks
I'm using the .NET RegistryKey class, but when I try this:
Code:
int i = this->AimEnabled->Checked;
this->pSettingsRegKey->SetValue(S"Send Message", i );
I get the following error:
Code:
error C2664: 'Microsoft::Win32::RegistryKey::SetValue' : cannot convert parameter 2 from 'int' to 'System::Object __gc *'
Conversion from a built-in type or a value type to 'System::Object __gc*' requires boxing
Can someone help me figure out what I need to do to make this work?
Thanks