Not all files are saved after close/re-open project

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
kathbeau
Knows some wx things
Knows some wx things
Posts: 48
Joined: Fri Nov 28, 2014 6:30 pm

Not all files are saved after close/re-open project

Post by kathbeau »

I find that when I create a project that adds new units, everything is in the Project Inspector, everything builds and runs... until I close the project and subsequently re-open it.

For example, the "Movie Catalogue" tutorial. I followed the tutorial, everything works. I saved the project using File | Save All and closed the project.

Upon re-opening it, only the files created by the wizard (MovieCatalogue*.*) appear in the Project Inspector, and the project will not build because files are missing. I have to go to Project | Add to Project and re-add AllMovies.h, AllMovies.cpp, Movie.h and MovieTableViewer.h. Now the files appear in the Project Inspector, and the project builds and runs. But when I close/re-open the project, the files created by me (and not by the wizard) are once again missing.

I have also tried File | Save Project As..., but the result is the same.

What am I doing wrong?

Incidentally, I can see the files when viewing the .dev in a text editor. I tried moving the [Unit n] sections for the extra files, and re-opening the project with that. It did no harm, but did no good, either.

Thanks for your help,
Kathleen
jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Post by jgrzybowski »

Can you write what kind of version of wxDev are you using?
Regards, Jarek
billsrepairs
In need of some credit
In need of some credit
Posts: 1
Joined: Fri Nov 27, 2015 4:40 am

Re: Not all files are saved after close/re-open project

Post by billsrepairs »

I am having the same problem with wxDev cpp 7.4.2.569
If I add HID.c to the project under project add to project it will not save after closing and reopening
jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Post by jgrzybowski »

I use version 7.3.1.3 of wxDevC++ on Windows 8.1. I can confirm there is not any problems like you have described above. Regards, Jarek
Tony0945
Earned some good credits
Earned some good credits
Posts: 105
Joined: Wed Oct 21, 2009 4:02 pm

Re: Not all files are saved after close/re-open project

Post by Tony0945 »

Same problem with 7.4.2.569
jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Post by jgrzybowski »

You can try to update your DEV file manually in some text editor. You need to add couple lines for each additional file, example:

Code: Select all

[Unit11]
FileName=NameOfYourAdditionalFile.h
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=
Or try to use older version. Regards, Jarek
Attachments
dev_file.png
dev_file.png (17.07 KiB) Viewed 14118 times
Tony0945
Earned some good credits
Earned some good credits
Posts: 105
Joined: Wed Oct 21, 2009 4:02 pm

Re: Not all files are saved after close/re-open project

Post by Tony0945 »

I found that the unit references i.e. [Unit 21] were being made when files were added to the project, but the UnitCount under [Project] was not.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.
Post Reply