User forums > Help

Add headers to project

(1/2) > >>

Manu12x:
Ok.. i am new to codeblocks, i was using lazarus.
I created a new project file .cbp with a cpp file inside it.
How can i add headers (created by me) into the project? If i do Open "example.h" i can edit it but it tells error while saving.
How can i add the headers to the projects and automatically be opened if i open the project?

oBFusCATed:
Have you tried using Project -> Add files?

Manu12x:

--- Quote from: oBFusCATed on October 08, 2016, 12:23:41 am ---Have you tried using Project -> Add files?

--- End quote ---
Yes i tried, i selected the file to open in the "openDialog" and it doesn't show anything.

oBFusCATed:
This command won't open the file. It will just add it to the project tree in Management -> Projects.

Manu12x:

--- Quote from: oBFusCATed on October 08, 2016, 04:11:42 pm ---This command won't open the file. It will just add it to the project tree in Management -> Projects.

--- End quote ---
Ok but next time i open the project it only opens the main.cpp.. and so i should open the headers file again..

Navigation

[0] Message Index

[#] Next page

Go to full version