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. This is this: Click on the menu command "Item / Properties", pop up the project properties dialog; or right click on the project name, select "Properties", pop up the project properties dialog; in the pop-up dialog In the activity configuration, select Configure Properties / Loat / Enter / Additional Dependent items, you can enter the library file to be added, and add the "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")