PDA

Click to See Complete Forum and Search --> : VB.NET Questions and Api calls


zulu1975
Sep 16th, 2002, 05:38 AM
Hi,

I am using VB.NET. I would like to build an SNMP program. Can I use vb.net (namespaces and api calls) or i need to program a COM object (from visual c++) and then call it from vb.net ?
I did n't see any snmp methods or functions in VB.NET. In visual c++ we have a lot of functions to call for snmp. An example is "SnmpGetRetry". We put the #include <winsnmp.h> and then declare that we need the Wsnmp32.lib in the build process. Then we can call our function.
How can we do that in VB.NET? Can we call SnmpGetRetry or we need to write the code in c++ and the call it from VB.NET ?
There are a lot of functions in Visaul c++, but i dont know if we can use in VB or VB.NET (ex.gethostname not gethostname method)
Finally I would like to ask if we Can call .lib files like c++

Thanks for your time,

zulu

PS.In other words can I program this project in VB.NET or I need to select again visual c++?

Desbaratizador
Sep 17th, 2002, 05:53 AM
Hi

You can use API calls in Vb .Net but Microsoft not recommend this aproache, only if nothing else can be used.
In .Net framework exists a System.Web.Mail.Smtpmail class, sure is a better chance.

El-Phantasmo
Sep 24th, 2002, 08:10 PM
I believe he was requesting SNMP ... not SMTP :)

^^ bump ^^ I'm looking for this info as well :)

Cander
Sep 25th, 2002, 08:59 AM
check this out

http://www.c-sharpcorner.com/Code/2002/Sept/SnmpLib.asp

Jared
Jan 2nd, 2003, 06:27 PM
Hi Zulu,

I was going to be starting an snmp project in the future and was wondering if you made any progress using vb.net?

Thanks,

Jared.