Hello,
i was wondering how you would create a file association in c++ with the registry, in lua it would be something like this...
function File.SetAssociation(Ext, Exe, Icon, Long)
local cKey = Long;
Registry.SetValue(HKEY_CLASSES_ROOT, Ext, "", Key);
Registry.SetValue(HKEY_CLASSES_ROOT, Key, "", Long);
Registry.SetValue(HKEY_CLASSES_ROOT, Key.."\\DefaultIcon","",Icon..",0");
Registry.SetValue(HKEY_CLASSES_ROOT, Key.."\\shell\\open\\command", "", "\""..Exe.."\" \"%1\"");
end
how would this be done in c++ and thanks for your time, it means alot to me.
Kind Regards,
Nathaniel Blackburn