> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loqate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Integrate the Loqate C++ API using Microsoft Visual Studio [DUPLICATE]

1. Launch Microsoft Visual Studio (the following screenshots are taken from Microsoft Visual Studio 2005).

2. Select File > New > Project

3. The New Project wizard will open. Highlight “Win32” under the Visual C++ node on the left under Project types and “Win32 Console Application” under Templates on the right as seen below.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/hAGiqjOaCT5E-irt/images/newproject.png?fit=max&auto=format&n=hAGiqjOaCT5E-irt&q=85&s=72806d962112517f610cc2a618e1a25b" width="800" height="565" data-path="images/newproject.png" />
</Frame>

4. Enter the name for your project in the Name field and select OK (this will automatically populate the Solution name with the same name). For this example, we will use "lqttest."

5. The Win32 Application Wizard will open; select Next.

6. Select "Console application" for Application type and click the "Empty project" box under Additional options as seen below and select Finish.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/6of5PNGnHDAqYvfh/images/win32appwiz.png?fit=max&auto=format&n=6of5PNGnHDAqYvfh&q=85&s=f08dd2cca751c5c69ab864f0675b01d9" width="621" height="437" data-path="images/win32appwiz.png" />
</Frame>

7. Highlight and right-click the "lqttest" project in the Explorer window. Select Add > Existing Item…

8. Browse to the directory where your Loqate software is installed and you will see both the lqtcr.h and lqtsample.cpp files. Select both files and select Add as seen below.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/SCbzdIaHMqk4IVMS/images/addfiles%20(1).png?fit=max&auto=format&n=SCbzdIaHMqk4IVMS&q=85&s=bb5341134d4d1f484f34b76a232b5ab7" width="699" height="445" data-path="images/addfiles (1).png" />
</Frame>

9. Highlight and right-click the "lqttest" project in the Explorer window again and select Properties.

10. In the Configuration drop-down menu, select "All Configurations" and for the Platform drop-down menu, select "Active(Win32)."

11. Under Configuration Properties, expand the C/C++ node and select General. We will set the Additional Include Directories to point to your Loqate install directory. Click on the ellipses and it will open another window. Click the folder icon and click on the next set of ellipses. Browse to your Loqate install directory and select Open and hit OK. Next, hit Apply.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/wwkAPZOZpT3jkoyU/images/includedirs%20(1).png?fit=max&auto=format&n=wwkAPZOZpT3jkoyU&q=85&s=0492ef534dc8a0f9a57440ab8136ff6a" width="751" height="528" data-path="images/includedirs (1).png" />
</Frame>

12. Stay in the Property Pages window and expand the Linker node. Highlight Input and enter the path of the lqtcr.lib file in the Additional Dependencies field.

For example, this path would be filled in: "C:\Program Files\Loqate\lqtcr.lib" Hit Apply and OK.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/wwkAPZOZpT3jkoyU/images/includedirs%20(1).png?fit=max&auto=format&n=wwkAPZOZpT3jkoyU&q=85&s=0492ef534dc8a0f9a57440ab8136ff6a" width="751" height="528" data-path="images/includedirs (1).png" />
</Frame>

13. Right-click the "lqttest" project and select Build. You should see in the Output window at the bottom if the build was successful or not.

14. Next, we will add the lqttest.exe file to your Loqate install directory. Go to Documents > Visual Studio 2005 > Projects > lqttest > debug > lqttest.exe. Copy the lqttest.exe file that was created and add it to your Loqate install directory. Your Loqate install directory should now have the following contents:

<Frame caption="">
  <img src="https://mintcdn.com/loqate/hAGiqjOaCT5E-irt/images/lqttestexe%20(1).png?fit=max&auto=format&n=hAGiqjOaCT5E-irt&q=85&s=17fe7c2d8061499da4cd809b5f5fd197" width="607" height="489" data-path="images/lqttestexe (1).png" />
</Frame>

15. Open a command window and cd to your Loqate install directory. Run the lqttest.exe file and you will see the output of the single record as seen below.

<Frame caption="">
  <img src="https://mintcdn.com/loqate/_M6UKnN7xWZAxsg3/images/cmd%20(1).png?fit=max&auto=format&n=_M6UKnN7xWZAxsg3&q=85&s=169496308ee39833489d9b8f7b67dab3" width="669" height="311" data-path="images/cmd (1).png" />
</Frame>

You have now successfully integrated our C++ API!
