|
-
Sep 16th, 2002, 05:38 AM
#1
Thread Starter
New Member
VB.NET Questions and Api calls
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++?
-
Sep 17th, 2002, 05:53 AM
#2
Member
Try this
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.
-
Sep 24th, 2002, 08:10 PM
#3
-
Sep 25th, 2002, 08:59 AM
#4
-
Jan 2nd, 2003, 07:27 PM
#5
Member
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.
"It is preoccupation with possessions, more than anything else, that prevents us from living freely and nobly." -Bertrand Russell
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|