Hi Alfonso, I've done this. For my need I wrote an app the remotely reboots printers by writing a value to a private MIB based on the examples for getting and setting a MIB value.
Create the project, in the properties menu for the project point the "additional include folder" to the \net-snmp\include and point the "additional libraries folder" to \net-snmp\lib, include the appropriate .h file reference in your source file, and you're off. I happened to use a precompiled header for my app. I recommend statically linking to avoid CRT runtime issues. For example my app dynamically linked was 9 Kb, statically linked it was 55 Kb. I have not used /clr for this app so I can't comment on that aspect of VS2008 development. Nick. -----Original Message----- From: Alfonso Urdaneta [mailto:[email protected]] Sent: Thursday, March 12, 2009 5:11 PM To: [email protected] Subject: NetSNMP + Visual Studio 2008 Apologies for posting what is quite possibly a FAQ, but the mailing list archives don't seem to have a search available. 1. Is it possible to write applications using Visual Studio 2008 with NetSNMP? 2. If yes, is it possible to integrat NetSNMP into a /clr (not pure obviously) application? Thanks, alfonso e. urdaneta _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message. This footer also confirms that this e-mail message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Indra Systems, Inc. ------------------------------------------------------------------------ ------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
