|
-
Sep 11th, 2000, 12:35 PM
#1
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
-
Sep 11th, 2000, 12:55 PM
#2
Addicted Member
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)
-
Sep 11th, 2000, 12:58 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|