![]() ![]() |
Tip #1 - Organizing Multi-Targeted Projects
When creating a multi-targeted project, it's a good idea to organize your files so that your project lies in a separate folder, and so that each target lies in a unique subfolder branching from your project folder. When saving a new project, however, Power++ saves the target first, then the project - this prevents the user from initially creating a subfolder for the target within the project folder, since the project folder does not yet exist. Thus, when creating multiple targets, Power++ defaults to the structure shown on the right.
However, this makes it unclear as to which directory contains the project files, and which ones contain target files only - where would you go to open the project, keeping in mind that 'Target1' and 'Target2' would more likely be non-enumerated names such as 'X-Edit' and 'Spellcheck'? Additionally, how would someone unfamiliar with the project even know that the two directories are related before opening the project?
Another common folder structure for multiple targets is shown at left. After saving the first target in the project folder, a user might create a child folder of the project folder to store additional targets. This is awkward, as the initially created target lies in the project folder, while all additional targets lie in unique subfolders.
There is a simple way to avoid such awkward folder structures.
- When initially creating a project, immediately save it with the default target (the initial form that pops up is part of this default EXE).
- Give this target a temporary name and then give your project a name that corresponds to the nature of the program.
- After saving your target and project, choose Targets from the View menu option of the main Power++ window, and select the target to which you assigned a temporary name (it should be the only target listed). Press the <Delete> key, and confirm the deletion.
Now the project has no targets. Proceed by creating all targets for the project, putting each target into a distinct subfolder of the project folder.
Click here to see Tip#2Return to Power++ Home Page.
to top of page
Copyright © 1999 Sybase, Inc. All Rights Reserved.
Privacy Policy
Legal