comp.lang.ada
 help / color / mirror / Atom feed
* Telephony Application Programming Interface
@ 2012-10-31  9:43 MAriusz
  2012-10-31 14:59 ` Shark8
  2012-11-07 11:12 ` kylix
  0 siblings, 2 replies; 6+ messages in thread
From: MAriusz @ 2012-10-31  9:43 UTC (permalink / raw)


Hello.

How to use TAPI to ADA.

MAriusz



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Telephony Application Programming Interface
  2012-10-31  9:43 Telephony Application Programming Interface MAriusz
@ 2012-10-31 14:59 ` Shark8
  2012-11-07  8:10   ` MAriusz
  2012-11-07 11:12 ` kylix
  1 sibling, 1 reply; 6+ messages in thread
From: Shark8 @ 2012-10-31 14:59 UTC (permalink / raw)


On Wednesday, October 31, 2012 3:43:54 AM UTC-6, MAriusz wrote:
> Hello.
> 
> How to use TAPI to ADA.
> 
> MAriusz

Depends on which telephony application/framework you're interfacing to.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Telephony Application Programming Interface
  2012-10-31 14:59 ` Shark8
@ 2012-11-07  8:10   ` MAriusz
  2012-11-07  9:38     ` Yannick Duchêne (Hibou57)
  2012-11-07 13:35     ` Anonymous
  0 siblings, 2 replies; 6+ messages in thread
From: MAriusz @ 2012-11-07  8:10 UTC (permalink / raw)


http://msdn.microsoft.com/en-us/library/windows/desktop/ms728171(v=vs.85).aspx

How to do it in ADA ? 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Telephony Application Programming Interface
  2012-11-07  8:10   ` MAriusz
@ 2012-11-07  9:38     ` Yannick Duchêne (Hibou57)
  2012-11-07 13:35     ` Anonymous
  1 sibling, 0 replies; 6+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2012-11-07  9:38 UTC (permalink / raw)


Le Wed, 07 Nov 2012 09:10:24 +0100, MAriusz <irmar@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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Telephony Application Programming Interface
  2012-10-31  9:43 Telephony Application Programming Interface MAriusz
  2012-10-31 14:59 ` Shark8
@ 2012-11-07 11:12 ` kylix
  1 sibling, 0 replies; 6+ messages in thread
From: kylix @ 2012-11-07 11:12 UTC (permalink / raw)


On Wednesday, October 31, 2012 5:43:54 PM UTC+8, MAriusz wrote:
> Hello.
> 
> 
> 
> How to use TAPI to ADA.
> 
> 
> 
> MAriusz

Try gnatcom(http://www.gnavi.com), use the tool "bindcom" import TAPI typelib and then generate ada bindings.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Telephony Application Programming Interface
  2012-11-07  8:10   ` MAriusz
  2012-11-07  9:38     ` Yannick Duchêne (Hibou57)
@ 2012-11-07 13:35     ` Anonymous
  1 sibling, 0 replies; 6+ messages in thread
From: Anonymous @ 2012-11-07 13:35 UTC (permalink / raw)


"MAriusz" <irmar@duno.pl> wrote:

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

File with the local Americans with Disabilities Act compliance center.

> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-08  5:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-31  9:43 Telephony Application Programming Interface MAriusz
2012-10-31 14:59 ` Shark8
2012-11-07  8:10   ` MAriusz
2012-11-07  9:38     ` Yannick Duchêne (Hibou57)
2012-11-07 13:35     ` Anonymous
2012-11-07 11:12 ` kylix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox