Results 1 to 3 of 3

Thread: c++ and VB

  1. #1
    Guest

    Wink

    Hello

    I'm trying to call an API Function that is declared in Visual C++ from Visual Basic 6. The problem is that one of the variable is a structure and this structure contains a variables union . I need to make the function declaration in order to call the API ans i'm having declaration problems. I would like to know how can i declare a union in Visual Basic or how do i enter a variable union to call the function.

    This is the C++ code of the function i'm having trouble with...
    SNMPAPI
    SNMP_FUNC_TYPE
    SnmpMgrRequest(
    IN LPSNMP_MGR_SESSION session,
    IN BYTE requestType,
    IN OUT RFC1157VarBindList *variableBindings,
    OUT AsnInteger *errorStatus,
    OUT AsnInteger *errorIndex
    );

    Thanks in advance

    Dadiel Aguliendos

  2. #2
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231
    If you have the API Text Viewer that comes with VB, try looking up those Types, as well as the API Declaration for VB. (assuming your is listed in the API Text Viewer, unless you are using some custom made DLL)
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  3. #3
    Guest

    thanks kb244

    I already did that. The thing is that this DLL i'm using are not very common. It's the SNMP (Simple Network Management Protocol) DLLs which are not listed in the ApiViewer

    Thanks anyway...

    Dadiel Aguliendos

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