Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
File association to registry fails?
MortenMacFly:
Dear all,
due to a computer crash I had to re-install everything from scratch. I compiled rev. 1648 and run it but I encounter problems with setting the file association. After the question: "Code::Blocks is not currently the default application for C/C++ source files Do you want to set it as default?" I receive a lot of errors like:
--- Code: ---10:06:05: Can't create registry key 'HKCR\.cbp' (error 5: access denied)
10:06:05: Can't open registry key 'HKCR\.cbp' (error 2: file not found)
10:06:05: Can't set value of 'HKCR\.cbp' (error 2: file not found)
--- End code ---
when I click OK. Please notice that I am no longer an administrator on my machine (I am a power user by now) and that the path to the registry is not correct. Instead "HKCR\.cbp" it should be something like: "HKLM\.cbp". But there I might have no access, which should be taken care of anyway (I believe). Can someone confirm this issue?
Morten.
MortenMacFly:
Additional info:
I ran CodeBlocks as an admin for one time by now. The file association works then - the keys are registered correctly under HKLM. But when I start CodeBlocks after that as a power user again I receive the same errors as before. This leads to the question: Why is (obviously) HKCR being checked and tried to be modified if I run as power user and HKLM (the correct one) only if I run C::B as admin? Shouldn't HKLM be the only one key to be read/modified for the file association to work?
Morten.
killerbot:
It's because you are not admin !
I have created a patch (assigned it to Thomas, so if you kindly ask him, he might apply it ;-) )
See here :
http://forums.codeblocks.org/index.php?topic=1793.msg13435#msg13435
Patch you can find at sourceforge and the in the forum topic , listing the community patches.
Lieven
thomas:
He might not, because he knows too little about the magic incantations of the registry and he is afraid of completely breaking it. :lol:
From what he has read in another thread, there seems to be a user section in Windows98, but apparently it is not used...?
Until someone who really knows how to make it work on every system, Thomas is very reluctant to touch anything, lest it breaks for the systems where it works, too.
killerbot:
That's true Thomas.
Can anyone with WIN98 try the patch out please ???
Making the patch a bit more complicated I could check on the windows version, but would be nicer if it already works as it is now.
Cheers,
Lieven
Navigation
[0] Message Index
[#] Next page
Go to full version