# C Code Interface: CAPL Conversion

Vehicle Spy includes a nice time saving feature that converts Vector CAPL to C code. This feature is found under [Scripting and Automation](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-scripting-and-automation) -> [C Code Interface](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-scripting-and-automation/c-code-interface).\
\
Follow these steps to convert CAPL to C code for use in Vehicle Spy:

1. Verify a [platform and its databases](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-setup/network-databases) are setup properly.
2. Open C Code Interface.
3. Click **Add Project** and select "New Project from Vector CAPL". (Figure 1)
4. Select the \*.CAN file to convert.\
   &#x20; Verify MS Visual Studio converts the file into a project without errors.
5. Build the project in MS Visual Studio. (can use Ctrl+Shift+B)

   &#x20;  Verify the project builds without errors.<br>
6. Take Vehicle Spy online to run the converted and built CAPL project.\
   &#x20;  Results will depend upon what is in the CAPL project.\
   &#x20;  See results on the CCIF Output tab, [Messages view](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-spy-networks/messages-view), [Application Signals](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-scripting-and-automation/application-signals), [Graphical Panels](https://docs.intrepidcs.com/vspy-3-documentation/3.9.21/vehicle-spy-main-menus/main-menu-measurement/graphical-panels), etc.

![Figure 1: Convert CAPL to C code using the C Code Interface.](https://content.gitbook.com/content/g6JYrRktcRdQSngAenk0/blobs/nZw53GrQZn15wfaikYox/spyCAPLConverter.gif)
