How to use snmp ++ and agent ++

Source: Internet
Author: User

How to use SNMP ++ and Agent ++ [go]

 

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.