Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Telephony Application Programming Interface

103 views
Skip to first unread message

MAriusz

unread,
Oct 31, 2012, 5:43:53 AM10/31/12
to
Hello.

How to use TAPI to ADA.

MAriusz

Shark8

unread,
Oct 31, 2012, 10:59:03 AM10/31/12
to
Depends on which telephony application/framework you're interfacing to.

MAriusz

unread,
Nov 7, 2012, 3:10:24 AM11/7/12
to

Yannick Duchêne (Hibou57)

unread,
Nov 7, 2012, 4:38:12 AM11/7/12
to
Le Wed, 07 Nov 2012 09:10:24 +0100, MAriusz <ir...@duno.pl> a écrit:

> http://msdn.microsoft.com/en-us/library/windows/desktop/ms728171(v=vs.85).aspx
>
> How to do it in ADA ?

Create a function definition for `CoInitializeEx` and `CoCreateInstance`,
then instead of creating a body, imports with C++ convention. Map
constants `NULL`, `COINIT_MULTITHREADED` to Ada typed constants, with
appropriate representations and conventions. Similarly, create a mapping
of `ITTAPI` as an Ada record. I don't know how well typical Ada compilers
handles C++ dispatching, so I wonder what to do for `gpTapi->Initialize()`.

Alternatively and simpler, you may compile the whole snippet to an object
file, and bind to this object file with its own simplified interface
instead of to the Windows API directly. That's a good option (something
like pre-re-interfacing) when one don't want to bind to a full API but
only to a particular usage of it.

You may look at [Annex B — Interface to Other
Languages](http://www.adaic.org/resources/add_content/standards/05rm/html/RM-B.html)
for more on the topic.


--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University

kylix

unread,
Nov 7, 2012, 6:12:14 AM11/7/12
to
Try gnatcom(http://www.gnavi.com), use the tool "bindcom" import TAPI typelib and then generate ada bindings.

Anonymous

unread,
Nov 7, 2012, 8:35:24 AM11/7/12
to
File with the local Americans with Disabilities Act compliance center.

>

0 new messages