News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Main file is not shown!

Started by Red Prince, July 05, 2012, 06:32:26 AM

Previous topic - Next topic

Red Prince

Hello Everyone! By mistake I click on close button on workspace button and main. Now whenever I open code block I create a project or open an existing project main in not shown where I write my code! ho to get rid from this problem!
thanks!

Jenna

Please do not post the same question in two sections !!
I deleted the other post.

As Code::Blocks itself does not delete files on the disk, it should be as easy as reopen the file as you do it in any other application.

Red Prince

O.K., Sorry for double posting but problem is still there! How I come back to main file. I don't delete it but I click on close (X) button on both main and workplace button!

Jenna

If you use acomputer, you should know how to open a file with nearly any application, if not, you should not try to learn programming.

Red Prince

you don't understand What I am asking! when we create a project then a main.cpp file is created and shown in the Code::Block but now it is now shown whenever I create a project or open an existing project!
hope you understand now!

MortenMacFly

Quote from: Red Prince on July 05, 2012, 09:31:26 AM
you don't understand What I am asking!
Please calm down... you can (and have to) add source files to a project. If you don't do that they don't belong to the project. If you forget to save the project file they are lost. So: Add the "main" file to your project, save the project, close C::B, re-open C::B and re-load your project and the file will be there.

Please also read the C::B manual/WiKi (see my sig) to understand he concept of workspaces, projects and targets.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Red Prince

O.K., Thanks for your reply! Problem is solved!!

dannybox347

Some people make the mistake of moving the "Management" bar (Left bar where you see it.) Make sure you are looking in "Project" and not on "Resources"... if so then move the arrow!!!

sodev

Isn't the internet amazing?

There are people who cannot see that their very same question was already answered in two other threads that are still shown on the first page.

And then there are the masters of search, they find 5 years old threads and sign up just to answer these.

Imagine one of each kind would make a baby together, the combined power of search and writing output, the internet would be a totally different place :D

stahta01

Quote from: sodev on April 23, 2017, 02:21:18 PM
Isn't the internet amazing?

There are people who cannot see that their very same question was already answered in two other threads that are still shown on the first page.

And then there are the masters of search, they find 5 years old threads and sign up just to answer these.

Imagine one of each kind would make a baby together, the combined power of search and writing output, the internet would be a totally different place :D

LOL

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]

Yamini Manchikalapudi

Quote from: Red Prince on July 05, 2012, 06:32:26 AM
Hello Everyone! By mistake I click on close button on workspace button and main. Now whenever I open code block I create a project or open an existing project main in not shown where I write my code! ho to get rid from this problem!
thanks!

Taskbar->View->Manager  OR  Shift-F2.