Download the SNMP ++ v3.2, Agent ++ v3.5 package, and msv7 project package from the website http://www.agentpp.com, unzip these packages in the same directory, the directories are placed at the same level, do not contain each other. Then open the dynamic lib project under msvc. After building all, you can see the generated DLL and Lib, snmp_pp.dll, snmp_pp.lib… In the debug or release directory under the dynamic directory ...... Open the static lib project under msvc. After building all, you can view the generated Lib, snmp_pp.lib, and so on in the debug or release directory under the static directory ...... (This static method is not used much) Then create a new project mytest, Choose tools> Options> projects> VC ++ directories> include directories, such as SNMP ++/include, Agent ++/include, libdes, agentx ++/include, and so on. Add the required src directory to the tool-> options-> Project-> VC ++ directory-> source file directory, such as SNMP ++/src, Agent ++/src, libdes, agentx ++/src, etc. Add your snmp_pp.lib directory to the tool-> options-> Project-> VC ++ directory-> library file directory. This step is important when you add snmp_pp.lib to the project> Properties> linker> input> additional items. Then, copy snmp_pp.dll to the path of the system environment, or put SNMP in the program> Control Panel> system> advanced> environment variable bar. add the DLL address and restart the host to make it take effect. Remember to include the snmp_pp.h file in the program. The configuration is complete. For details about the subsequent programming, refer to the built-in SNMP ++ routines. Finally, Build mytest to compile and execute the link correctly. |