Adding Files and Folders to a C or C++ Project
You can add logical folders to your project, and you can add
files and folders to logical folders. Logical folders can be nested.
To add a logical folder to your project:
- Right-click the main node of your project or a logical folder
and choose New Logical Folder.
- In the New Logical Folder dialog box, type the name
of the new folder and click OK.
To add a new file to your project:
- In the Projects window, right-click a logical folder and choose New.
- Choose the type of file you want to add from the submenu.
If the submenu does not include the type of file you want to add, do the
following:
- Choose Other from the submenu.
- On the Choose File Type page of the New File dialog box, select a
category and file type. Click Next.
- On the Name and Location page of the New File dialog box, type the file name in the File Name field.
Click Finish.
To add an existing file to your project:
- For all logical folders except the Important Files folder:
- Right-click the
folder and choose Add Existing Item.
- In the Select Item dialog box, select the item you want to add.
- Select an option for storing the path: Relative stores paths as relative to project root, Absolute
stores paths as absolute paths. Auto mode stores paths as relative to project root if the
file is inside project, othervise as absolute path.
- Click Select.
- For the Important Files folder:
- Right-click the folder and choose Add Item to Important Files.
- In the Select External Item dialog box, select the item you want to add, select
the mode for storing the path, and click Select.
Legal Notices