## Creating DLL Projects Tutorial

In this example we show how to create a project for a DLL (Dynamically Linked Library) using one of the built-in Carbide templates, build it, then attach to another program for debugging. The steps to do this include:

1. Creating a DLL project from a project template
2. Building the DLL object code based on the project sources
3. Debugging the DLL using the Carbide debugger

NOTE There must be at least one recognized SDK installed before you can create a project. See the Symbian SDKs panel to determine if the installed SDKs are recognized by Carbide.c++ IDE. If the SDK you have installed is not recognized, you may still be able to add it to the Discovered Symbian OS SDK list.

In this tutorial you'll create a simple DLL project using the New Symbian OS C++ Project wizard, attach it to the HelloWorld project created here, then debug it.

#### Creating a DLL project from a template

1. Click the File > New > Symbian OS C++ Project menu option.

   The New Symbian OS C++ Project window appears to guide you through project creation process.

2. Select a template from the available options, then click Next.

   Select the template for the type of project you want to create. For this example we chose the Generic Symbian OS > Baisc dynamically linked library (DLL) template. Note that as you select a template a brief description appears below the list explaining it attributes.

3. Use the New Symbian OS C++ Project page to define the project name and build system.

   1. Type a name into the Project name text box.

      The project name is used to define several of the pre-build source files in the prject.

   2. (Optional) Change the project location.

      Uncheck the Use default location option to specify a different location for the project.

   3. Select the Builder type.

      Based on the installed SDKs you can choose between SBSv2 (recommended) and the older SBSv1 build systems.

   4. Click Next.
4. In the Symbian OS SDKs page, select the SDK and build configurations for the project.

   Here you can select from any SDK that is both installed and recognized by Carbide. If the SDK supports several build configurations (GCCE, RVCT, etc.) then you can pick and choose among them for your project.

5. (Optional) Click Next to provide Basic Settings like author, copyright and other info for your project.
6. (Optional) Click Next to rename the Project Directories used to organize the project.
7. Click Finish.

   Carbide uses the selected project template and your settings to create the DLL project in the Project Explorer view.

NEXT STEP > Building the object code based on the project sources

#### Other references

- DLL Projects