My question is not really about SNMP as it is about properly referencing an
object. For example, if I have the following VB code
Dim lpMgrSession As Long
Dim lpAgentAddress As String
Dim lpAgentCommunity As String
Dim nTimeOut As Long
Dim nRetries As Long
lpMgrSession = SnmpMgrOpen(lpAgentAddress, lpAgentCommunity,
nTimeOut, nRetries)
I get the following error when I try to run
Name 'SnmpMgrOpen' is not declared.
The documentation indicates that the function is in MGMTAPI.DLL. My
challenge is that I have been unable to add this DLL as a reference. If I go
to Project/add reference and attempt to add under any of the tabs - .NET,
COM, or Projects, I get an error stating "This is not a valid assembly of COM
component"
What do I need to do in order to get VB.NET to understand how to call this
function?
"mony" wrote:
I am looking a VB.NET example on how to reference the SNMP API information.
I am unable to add references to SNMPAPI.LIB or SNMPAPI.DLL.
My goal is to write a 100% VB.NET example (no C or C# code) of some simple
snmp commands. All examples I can find are written in C or C#. There is an
extensive snmp.h file, but I cannot find the equivalent for VB or figure out
how to manually create the equivalent in VB
All I need is a starting point. For example - successfull compilation with
all references resolved to call the SnmpMgrOpen function