How to add a lib library file to the VC.NET project

xiaoxiao2021-03-06  65

In the VC6 integrated development environment, you can click on the menu command Project / Setting, pop up the project properties dialog; then select Link / Object / Library Modules in the active configuration, you can enter the library file to be added.

But in the VC.NET integrated development environment:

Click on the menu command "Project / Properties", pop up the project properties dialog; or in the solution view or class view, right click on the project name, select "Properties", and pop up the project properties dialog;

In the active configuration of the pop-up dialog box, select Configure Properties / Link / Enter / Additional Dependent items, you can enter the library file to be added, and add a click "Apply" or "OK" button.

If you want to add a lib library file for all configurations, you can switch the activity configuration to "All Configurations".

Other ways;

#pragma comment (Lib, "libname.lib")

转载请注明原文地址:https://www.9cbs.com/read-85727.html

New Post(0)