Page 1 of 1

'New Project' - how to

Posted: Tue Mar 09, 2010 6:20 pm
by WilliamL
(I had this in Bugs but I thought maybe a discussion of 'how to' would be more helpful)

This is how I made a project from an existing file and include-files. (edited to show what worked and not what didn't work)

1) I created a new folder (Books-project-pb) for my project
2) copied all the original files of my program into the new folder (1-.pb and many .pbi s)
3) I ran pb [4.41] and selected 'New Project' and entered 'Books-project' in 'Project File", then clicked on the '...' and selected the newly created folder (step 1), typed Books project in 'Project Name". Hit 'create'. (This creates a .pbp file)
3) clicked 'Project Options' then 'Project Files' then 'Open' and selected 'Books.pb' - it was added to 'File' box (did the same with all the .pbi files)
4) when all files are loaded, select each file and use the options below the 'File" box (eg. uncheck 'Display a warning...')
5) changed the info in 'Compiler Options'
- in 'Input source file:' I put 'Books.pb'
- in 'Output executable' I used the '...' to select an already existing Books app. - this gives the location (Note that for this to work you have to use 'Build Target' in the 'Compiler' menu and not 'Create Executable')
6) hit run - runs ok

How do I run the project from the desktop - what do I double-click on? (< I haven't figured this out yet.)
Do I still need to have 'IncludeFile' and .pbis? (<seems the answer would be 'yes' since just a .pbp file is created to list the files,options,etc. and is not code)
What are 'Project Targets'? - do I want to 'Enable Build all Targets'? - (default target works fine - no prob.)
If you change the project folder name the project will not load. To fix that use 'Open Project' in pb and that seems to straighten it out in the .pbp file.

-I should note here that the 'combobox gadget' in the left top of the 'Project Options' screen shows my 'Favorites' folder and is changed by double-clicking on the listing below to get to your file. Unfortunately, when you get to the file you want to Add, the 'Add' button is not activated and that is why I used 'Open' to add my files. Also the CompilerOptions page, the four buttons at the lower right seem to overlap a little bit and the button after 'Use Icon' seems to be doubled. I have had the editor crash several times if I double-clicked on the file names on the Project page.

I set the Tools Panel to show 'Project' and when I double-click the files, sometimes the file is loaded without the '<" which makes it un-usable. (then must close and re-click). I've had to re-set this preference many times. Sometimes the files that are loaded when pb is first run are blank.

AutoComplete is very nice but what I would like to see is the Find function searching all the project files (without having to select each one and do search). I don't know how that could work without having the files loaded. Maybe search could works for all the files that ARE loaded? With the .pbp file identifying the files, I imagine this would be possible along with many other additions.

Well, I don't know if I did it right or not but the project is running fine. If you can correct my mistakes I will update my 'steps' so that it will be more helpful and accurate. I am getting used to the 'project' format and imagine, in time, that I will not be able to live without it.