I'm not sure if this is the right forum, but i always seem to get redirected here with questions regarding .NET
Im using Managed C++ and im trying to edit a registry key.
using namespace System;
using namespace Microsoft::Win32;
int main()
{
RegistryKey^ rk = Registry::CurrentUser;
rk->OpenSubKey(L"Software\\Microsoft\\Command Processor", true);
rk->SetValue(L"Autorun", L"VALUE");
rk->Close();
}
This compiles, but it doesn't change the registry key. Whats wrong?