Results 1 to 5 of 5

Thread: VB.NET Questions and Api calls

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    -
    Posts
    2

    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++?
    -

  2. #2
    Member
    Join Date
    May 2001
    Posts
    39

    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.

  3. #3
    Junior Member El-Phantasmo's Avatar
    Join Date
    Sep 2002
    Posts
    30
    I believe he was requesting SNMP ... not SMTP

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

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Member Jared's Avatar
    Join Date
    Nov 2002
    Posts
    58
    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
  •  



Click Here to Expand Forum to Full Width