News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code blocks .cbp file will not associate with code blocks

Started by Chay Hawk, September 13, 2014, 09:02:02 PM

Previous topic - Next topic

Chay Hawk

Ok so I have code blocks installed and when I open the project folder on my desktop all the files are white, and when I click the .cbp file windows just says how do you want to open this file?, I find the code blocks .exe and it will not associate with it. I can open code blocks and drag the .cbp file in it though and that works, but I want to be able to just click on the project file. This has never done this before and I have no idea whats going on. I don't want to uninstall code blocks because I have libraries installed and linked and it would be a major pain to re do them again, so what do I do? I attached a screenshot.

stahta01

What operating system?

If on windows, Did you try
Settings -> Environment...
General Settings
Check and Set File Associations
Post Edit 1: Button: "Manage"
Button: "Set Now"

Note: I have never done the above; but, it looks like the correct thing to do.

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Chay Hawk

Yes i'm on windows 8, I just tried that and it still doesnt work, this is very strange.

stahta01

Quote from: Chay Hawk on September 13, 2014, 11:23:53 PM
Yes i'm on windows 8, I just tried that and it still doesnt work, this is very strange.

You might try it once more running Code::Blocks as Administrator in case it failed because of a permission issue.

If it fails after that, I suggest restarting the computer in case a restart of Windows Explorer is needed.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Chay Hawk

I just tries both of those and nothing worked :( what else can i do? If i re install code blocks on top of this one, will it delete my external library link settings?

Chay Hawk

Does anyone know? I re installed code blocks over the existing one, and all my linking stuff stayed there, maybe there is a settings file somewhere in my documents that I can delete?

Alpha

Code::Blocks stores its settings within the AppData folder (hidden by default - probably <user_folder>\AppData\Roaming\CodeBlocks).  Though this should not have any effect on file associations.

oBFusCATed

The file associations should be stored in the registry.
Probably something has been changed in this regard in Windows 8.
This is just a guess, I'm a linux user after all, so I might be wrong.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Chay Hawk

Ah, well I do have a program called Advanced System Care that cleans the registry among other things, so i'm quite positive that's what happened. So how would I go about fixing it?


stahta01

The only other thing to try is re-installing Code::Blocks.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

I doubt it will help... can any one running windows 8 report if the file associations work or not?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

Quote from: oBFusCATed on September 15, 2014, 09:21:33 PM
I doubt it will help... can any one running windows 8 report if the file associations work or not?
File association works flawlessly.

@Chay Hawk:
did you click the "Manage" button on the right side of "Check & set file associations ..." and check whether the correct endings are checked.

Chay Hawk

Yes I did, I re started my pc too just to see if that mattered and it didnt :(

Chay Hawk

Ok so I went to "Associate a file type or protocol with a program" in control panel and I looked for the .cbp extension and it was not there, so its been deleted, but I re installed code blocks and it didnt add it to the registry, so what i'm guessing is that there is a settings file somewhere that tells the program not to add that to the registry because it was already installed, because i installed CB over a pre existing version because i have a bunch of external libraries linked that i dont want to have to re link again, so is there anything in the files that would specify something like that? so when i re install code blocks again it will make registry entries?