# C++

{% hint style="info" %}
C++ is built on top of  the Visual Studio.
{% endhint %}

{% hint style="danger" %}
Please be aware that even if it is a server program, the client library must also be referenced to build and run.
{% endhint %}

## 1.  ProudNet header file

In the ProudNet installation folder, you will find the include folder -> <mark style="color:orange;">ProudNetServer</mark>, <mark style="color:orange;">ProudNetClient</mark> header files.

The Server project gets the <mark style="color:orange;">ProudNetServer</mark> header file and the Client project gets the <mark style="color:orange;">ProudNetClient</mark> header file. And for the Common project, we import the <mark style="color:orange;">ProudNetCommon</mark> header file.

<table><thead><tr><th width="226" align="center">Location</th><th align="center">File name</th></tr></thead><tbody><tr><td align="center">Project</td><td align="center">HeaderFile</td></tr><tr><td align="center">Server</td><td align="center">ProudNetServer.h</td></tr><tr><td align="center">Client</td><td align="center">ProudNetClient.h</td></tr><tr><td align="center">Common</td><td align="center">ProudNetCommon.h</td></tr></tbody></table>

The path to the included library folder will be different for each project property, and you will need to set the path for both the Debug and Release properties.

<figure><img src="/files/Feppu5nT62ifSb6JY3vd" alt=""><figcaption><p>ProudNet installation path/include</p></figcaption></figure>

## &#x20;2. Setting path to the library \<ProudNetClient.lib> directory

{% hint style="danger" %}
Please do not use the paths below unconditionally, but set them according to your environment and the directory where ProudNet is actually installed.\
\
For architecture- and platform-specific library paths, see [**Download and Install**](/proudnet.eng/proudnet/1.download.md)**.**
{% endhint %}

<table><thead><tr><th width="226" align="center">Location</th><th align="center">Library name</th></tr></thead><tbody><tr><td align="center">Server</td><td align="center">ProudNetServer.lib , ProudNetClient.lib</td></tr><tr><td align="center">Client</td><td align="center">ProudNetClient.h</td></tr></tbody></table>

<figure><img src="/files/fpSxBFHWWIYRS3VwIBmD" alt=""><figcaption><p>64-bit project, ProudNet installation path/lib/x64/v140/Debug</p></figcaption></figure>

<figure><img src="/files/QjTaNzroV64rKZU5gKz4" alt=""><figcaption><p>32-bit project, ProudNet installation path/lib/Win32/v140/Debug</p></figcaption></figure>

&#x20;

## 3. Setting library \<ProudNetClient.lib> Dependencies

<figure><img src="/files/l7IuZW4f5GDiChBrTbAZ" alt=""><figcaption></figcaption></figure>

Apply the above steps to the lib files for the Client and Server projects.

***

## :arrow\_left:  [**Back**](https://docs.proudnet.com/proudnet.eng/proudnet/2.setting/pages/YF7Z3CPCxDI0T1hoMsHR#2.-pidl)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.proudnet.com/proudnet.eng/proudnet/2.setting/c++.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
