Re: TAPI and VS.NET 2003



Hi Matthias,

Thank you very much! It was in fact the 3rd party program which had hijacked
my tapi3.dll. Removal of the program and running regsvr32 on my
system32/tapi3.dll fixed the COM wrapper in .NET.

Unfortunately, the computer I have the modem on only has the ability to
write managed code (no pre-.NET environments were installed), making writing
it in non-managed code difficult. I'm not writing a commercial application
(just something for personal use), so I'll just try to manage with whatever
problems I come across.

Thanks again very much for your help,

Clayton


"Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
news:O65Mq1CMGHA.4052@xxxxxxxxxxxxxxxxxxxxxxx
Clayton,

probably the 3rd party application has messed up your system.

It is not allowed (and not necessary anyway) to redistribute tapi3.dll
with an application. Having a duplicate copy of tapi3.dll in a folder
different from system32.

I would suggest to
- completely remove the 3rd party app.
- Reinstall the latest service pack to be sure you have the righ file
- run regsvr32 tapi3.dll in the %WINDIR%\system32 folder
- use a development platform which is supported with TAPI3
(e.g. C++ or VB)

Sooner or later you may run into problems (mainly due to garbage
collection issues) even if the basic things seem to work at first sight.
Just do a search over this group on Google Groups to read about
the numerous problems that have been reported with TAPI and .NET.

You should rather create the TAPI part as a dll in C++ or VB and use
this dll from your .NET application.

Best regards,

Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------


"Clayton Rumley" <clayton@xxxxxxxxxxxxx> wrote in message
news:%238J4NK$LGHA.3144@xxxxxxxxxxxxxxxxxxxxxxx
Hi Andreas,


Clayton,
Regarding TAPI and .NET see KB article "841712 - Telephony Application
Programming Interface (TAPI) functionality is not supported from managed
code".

I read the article, but I don't believe the statement that the COM
wrapper generated by VS.NET doesn't work because I've seen other people
with managed code examples online, and I can use the COM wrapper to
enumerate the modems, dial the modem, answer calls, etc. Perhaps they
mean that it only partially works (i.e. a bunch of interfaces don't get
generated)?

Are you saying that you see the ITxxx interfaces but not the ITxxx2 ?

Correct. The intellisense lists all the ITxxx interfaces but not ITxxx2.
If I try to simply type the name of an ITxxx2 interface against the
TAPI3LIB namespace it just gives me an error (that the name is not
defined).

Can you reproduce the issue with TAPI Browser TB3x ?

In order to ensure that my modem was going to do what I wanted it to do,
I downloaded a shareware answering-fax machine software from
http://www.go4customer.com/ (which did everything I wanted my program to
do so I know I've got the right modem). When I run TAPI Browser TB3x it
uses the tapi3.dll in this shareware application's directory (not the one
in my system32 directory), where it does in fact list all the ITxxx2
interfaces. So I decided maybe the tapi3.dll in my system32 directory
wasn't the right one and manually added a reference in VS.NET to the
tapi3.dll provided by the answernig-machine software. The end result was
no different.

I'm hoping I'm just missing something really simple and that it can be
easily resolved but I haven't been able to find anyone else online
talking about this problem. I thank you very much for your time.

Clayton





.



Relevant Pages

  • Re: TAPI and VS.NET 2003
    ... You should rather create the TAPI part as a dll in C++ or VB and use ... The intellisense lists all the ITxxx interfaces but not ITxxx2. ... In order to ensure that my modem was going to do what I wanted it to do, ... in my system32 directory), where it does in fact list all the ITxxx2 ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TAPI and VS.NET 2003
    ... Regarding TAPI and .NET see KB article "841712 - Telephony Application ... The intellisense lists all the ITxxx interfaces but not ITxxx2. ... In order to ensure that my modem was going to do what I wanted it to do, ... system32 directory), where it does in fact list all the ITxxx2 interfaces. ...
    (microsoft.public.win32.programmer.tapi)
  • RESOLVED: RegisterCallNotifications for Multiple Modems?
    ... Second, As all of the TAPI gurus here pointed out, it is neccessary to ... with modem based TAPI lines as using just Monitor does not result in any ... BSTR* ppName = CXT AC-Link Modem for Intel ...
    (microsoft.public.win32.programmer.tapi)
  • Re: RESOLVED: RegisterCallNotifications for Multiple Modems?
    ... If you get the caller ID when you first learn about the call and then ... isn't being provided in these cases by the modem TAPI Service Provider ... Best I can suggest is to look at the low level modem log (check Andreas' ... It sounds sensible what you write that CID info might be available prior ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Future or TAPI
    ... duplex and that the Unimodem driver only supported half duplex operation. ... And when the modem disconnects it does eventually know ... Modems don't have hardware support ... > TAPI application. ...
    (microsoft.public.win32.programmer.tapi)