L
Lüko Willms
I can't get it...
It should be possible --- Tobit's server "David" for unified
messaging supplies a DLL called DvAPI32.DLL which is a COM server
providing objects and methods and properties to be used in C/C++ or
Visual Basic, and maybe other languages. This DLL comes with a *.TLB
(I guess a Type Library for the DLL with the same base name) and is
accompanied by a DvCTL32.DLL.
I try to use it in a VBA macro in Winword (2000 or 97 are avaiable
to me), but the compilation fails right in the first line because of
an unknown or undefined user type.
The vendor gives examples for VB, with the commend "The Visual Basic
example assumes that you have set references to the DvISE API". Well,
I don't know how to do it. Probably I need a Class module with some
initialisation code. But then I don't now how to do that.
Can please anybody help me?
This is how the VB examples normally do begin:
------- cut ------------
Dim oApp As DvApi32.IApplication
Dim oAcc As DvApi32.Account
Dim oUser As DvApi32.User
Dim oAddressItem As DvApi32.AddressItem
Set oApp = CreateObject("DVOBJAPILib.DvISEAPI")
Set oAcc = oApp.Logon("", "", "", "", "", "AUTH")
-------------- cut off --------
VBA flags the first line as undefined user type ...
The DLL, by the way, is registered by a RegSrv32 DvAPI32.DLL
Cheers,
L.W.
It should be possible --- Tobit's server "David" for unified
messaging supplies a DLL called DvAPI32.DLL which is a COM server
providing objects and methods and properties to be used in C/C++ or
Visual Basic, and maybe other languages. This DLL comes with a *.TLB
(I guess a Type Library for the DLL with the same base name) and is
accompanied by a DvCTL32.DLL.
I try to use it in a VBA macro in Winword (2000 or 97 are avaiable
to me), but the compilation fails right in the first line because of
an unknown or undefined user type.
The vendor gives examples for VB, with the commend "The Visual Basic
example assumes that you have set references to the DvISE API". Well,
I don't know how to do it. Probably I need a Class module with some
initialisation code. But then I don't now how to do that.
Can please anybody help me?
This is how the VB examples normally do begin:
------- cut ------------
Dim oApp As DvApi32.IApplication
Dim oAcc As DvApi32.Account
Dim oUser As DvApi32.User
Dim oAddressItem As DvApi32.AddressItem
Set oApp = CreateObject("DVOBJAPILib.DvISEAPI")
Set oAcc = oApp.Logon("", "", "", "", "", "AUTH")
-------------- cut off --------
VBA flags the first line as undefined user type ...
The DLL, by the way, is registered by a RegSrv32 DvAPI32.DLL
Cheers,
L.W.