-
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
-
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)
-
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