# Using the neoVI API in Borland C++ Builder - neoVI API

**Do the following steps to use neoVI in Borland C++ Builder:**

1\) Start your new project and add the [<mark style="color:blue;">Dynamic link helper files</mark>](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/d313052951efba4e15421be3f8e35682/DynamicLinkHelpCP.zip) to your project.

2\) Add a <mark style="color:blue;">#include</mark> "icsneo40DLLAPI.h" to your project

![Figure 1 - include for “icsneo40DLLAPI.h”](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-35543ecf03f5def8644e88d65aca5fdbbbed16a8%2FBCBLinkAdd.gif?alt=media)

![Figure 2 - “icsneo40DLLAPI.cpp” added to project](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-e940a9053ead23f267169ff74a893a647dea6b1d%2FBCBLinkProj.gif?alt=media)

3\) Use the Functions "LoadDLLAPI" to load the functions and "UnloadDLLAPI" to unload the functions. Examples are below.

```
 //-----Load the DLL
 if(!LoadDLLAPI(hDLL))
 {
 //problem, close the application
 printf("Problem loading Library\r\nMake sure icsneo40.dll is installed and accessable\r\nPress any key to Exit");
 }

 //-----Unload the DLL
 UnloadDLLAPI(hDLL);
```

4\) Finally, call the methods as defined in the he [Basic Operation](https://docs.intrepidcs.com/neovi-api/basic-operation-intrepidcs-api) document.

### **Example**

A Borland C++ Builder example (Figure 1) is included to show how the API all works together. The example files are included in the following file: [BCBneoVI.zip (31kB)](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/5b423931d746e01279d8219e71c2d219/BCBneoVI.zip)

The example shows how to open and close communication to the driver, send messages and read messages on the networks.

![Figure 1 - The Borland C++ Builder Example.](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-268ce54ef3e462f3c93d695f994e1fb9ec15d280%2FBCBExample.gif?alt=media)
