TAPI initialize error  
Author Message
vats





PostPosted: Visual Basic Express Edition, TAPI initialize error Top

Hi,

Using TAPI 3.0, i'm developing an application to place and receive call over a modem . As the first step, im trying to initialize TAPI in Win XP 2000 using VB Express Edition 2005.

The code:

**

Public Class pcm

Dim tapi_obj as TAPI

End Class

**

The declaration 'Dim tapi_obj as TAPI' gives "Type 'TAPI ' is not defined" error.

Can some one tell me what is wrong with this declaration Is there anything i need to import before declaring this Kindly help.

Thanks in advance.




Visual Studio Express Editions16  
 
 
nobugz





PostPosted: Visual Basic Express Edition, TAPI initialize error Top

In case you haven't done this yet: Project + Add reference, COM tab, select Microsoft TAPI 3.0 Type Library. That creates a wrapper that uses namespace "TAPI3Lib".
Dim tapi_obj As TAPI3Lib.TAPI



 
 
vats





PostPosted: Visual Basic Express Edition, TAPI initialize error Top

Hi nobugz,

Your answer solved the issue, proceeding to detect the USB phone.

Thanks a lot.