Add reference to application in c++

kaveh rahimi 61 Reputation points

Hi , I am in 'Wapprojtemplate' and want to add reference to my application. My header file is CH341DLL.H I don't know how to add it to my application. I am writing my code in C++. Please help me

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,553 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,861 Reputation points

    You're talking about C++ and you tagged dotnet-csharp...

    In C++, you just add at beginning :

    #include "CH341DLL.H" // (or <CH341DLL.H> if in paths)
    #pragma comment (lib, "CH341DLL")
    1 person found this answer helpful.
    0 comments No comments

  2. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor


    I suggest you could follow the following steps:

    1,Add the path to the header file(CH341DLL.H) to the Additional Include Directories(property - >c/c++ -> General -> Additional Include Directories)

    2,Add the path to the .lib file to the Additional Library Directories (property -> linker -> General -> Additional Library Directories)

    3,Add the name of the .lib file with its extension to the Additional Dependencies (property -> linker -> input -> Additional Dependencies)

    Best Regards,


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.