Home All Groups Group Topic Archive Search About
Author
3 Jul 2009 9:14 AM
J E Jensen

Hello NG

I want to implement TAPI to my application. The TAPI component i a Class
that is placed i my application. my application has reference to TAPI3 from
Microsoft.
I want to make a listner to get incomming call - and that works just fine. I
have a status bar in my application and whenever TAPI detects a call i se
the call and callerid on the status bar, just fine.

Now I want to notify the user by open a small form with informations based
on the callerID, so I gather some infos from by database (customer /
contactperson) and gets at DataTable with all that information. Then i opens
a new form and send the datatable to that form.

Somehow the notify form i open i another thread than my application (mabye
the TAPI thread) but when the form opens its getting the (not responding
text on title bar).

Could someone please help me here?

Kind regards
Johnny E. Jensen

Author
3 Jul 2009 12:10 PM
J E Jensen
Hello Again

I found an example that i could use.
When the TAPI component sends its status and callerid to my application i
opens the TAPIForm with infos in another thread. So far so good.
But on the TAPIForm i want to have buttons to open a customer- or
contactperson form. These froms exists on på application (thread) so another
problem??

Is there a way to keep the TAPI component in the same thread as my
application?

Kind regards
Johnny E. Jensen

Show quoteHide quote
"J E Jensen" <j**@winnercrm.dk> wrote in message
news:uHhbp47%23JHA.4692@TK2MSFTNGP02.phx.gbl...
> Hello NG
>
> I want to implement TAPI to my application. The TAPI component i a Class
> that is placed i my application. my application has reference to TAPI3
> from Microsoft.
> I want to make a listner to get incomming call - and that works just fine.
> I have a status bar in my application and whenever TAPI detects a call i
> se the call and callerid on the status bar, just fine.
>
> Now I want to notify the user by open a small form with informations based
> on the callerID, so I gather some infos from by database (customer /
> contactperson) and gets at DataTable with all that information. Then i
> opens a new form and send the datatable to that form.
>
> Somehow the notify form i open i another thread than my application (mabye
> the TAPI thread) but when the form opens its getting the (not responding
> text on title bar).
>
> Could someone please help me here?
>
> Kind regards
> Johnny E. Jensen
>
>
Are all your drivers up to date? click for free checkup

Author
7 Jul 2009 8:54 AM
Andreas Müller
Hi,

i do not think that it will be possible to bring the TAPI-component in the
same thread. But you can synchronize the event and your form. Have a look at
"InvokeRequired" property and "BeginInvoke" of the form. I think you will
find many examples on google (ups, bing ;-)). With these tow things you can
handle the event in the same thread as the form, then you should not habe
any problems with not responding forms.

Regards
Andreas

Show quoteHide quote
"J E Jensen" <j**@winnercrm.dk> schrieb im Newsbeitrag
news:uaQbfb9%23JHA.4692@TK2MSFTNGP02.phx.gbl...
> Hello Again
>
> I found an example that i could use.
> When the TAPI component sends its status and callerid to my application i
> opens the TAPIForm with infos in another thread. So far so good.
> But on the TAPIForm i want to have buttons to open a customer- or
> contactperson form. These froms exists on på application (thread) so
> another problem??
>
> Is there a way to keep the TAPI component in the same thread as my
> application?
>
> Kind regards
> Johnny E. Jensen
>
> "J E Jensen" <j**@winnercrm.dk> wrote in message
> news:uHhbp47%23JHA.4692@TK2MSFTNGP02.phx.gbl...
>> Hello NG
>>
>> I want to implement TAPI to my application. The TAPI component i a Class
>> that is placed i my application. my application has reference to TAPI3
>> from Microsoft.
>> I want to make a listner to get incomming call - and that works just
>> fine. I have a status bar in my application and whenever TAPI detects a
>> call i se the call and callerid on the status bar, just fine.
>>
>> Now I want to notify the user by open a small form with informations
>> based on the callerID, so I gather some infos from by database (customer
>> / contactperson) and gets at DataTable with all that information. Then i
>> opens a new form and send the datatable to that form.
>>
>> Somehow the notify form i open i another thread than my application
>> (mabye the TAPI thread) but when the form opens its getting the (not
>> responding text on title bar).
>>
>> Could someone please help me here?
>>
>> Kind regards
>> Johnny E. Jensen
>>
>>
>
>
Author
9 Jul 2009 12:02 PM
JJ
Hello Andreas

Thanks - that did the trick, thanks

/Johnny

Show quoteHide quote
"Andreas Müller" <amuel***@trigondata.de> wrote in message
news:OpZ4dCu$JHA.4376@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> i do not think that it will be possible to bring the TAPI-component in the
> same thread. But you can synchronize the event and your form. Have a look
> at "InvokeRequired" property and "BeginInvoke" of the form. I think you
> will find many examples on google (ups, bing ;-)). With these tow things
> you can handle the event in the same thread as the form, then you should
> not habe any problems with not responding forms.
>
> Regards
> Andreas
>
> "J E Jensen" <j**@winnercrm.dk> schrieb im Newsbeitrag
> news:uaQbfb9%23JHA.4692@TK2MSFTNGP02.phx.gbl...
>> Hello Again
>>
>> I found an example that i could use.
>> When the TAPI component sends its status and callerid to my application i
>> opens the TAPIForm with infos in another thread. So far so good.
>> But on the TAPIForm i want to have buttons to open a customer- or
>> contactperson form. These froms exists on på application (thread) so
>> another problem??
>>
>> Is there a way to keep the TAPI component in the same thread as my
>> application?
>>
>> Kind regards
>> Johnny E. Jensen
>>
>> "J E Jensen" <j**@winnercrm.dk> wrote in message
>> news:uHhbp47%23JHA.4692@TK2MSFTNGP02.phx.gbl...
>>> Hello NG
>>>
>>> I want to implement TAPI to my application. The TAPI component i a Class
>>> that is placed i my application. my application has reference to TAPI3
>>> from Microsoft.
>>> I want to make a listner to get incomming call - and that works just
>>> fine. I have a status bar in my application and whenever TAPI detects a
>>> call i se the call and callerid on the status bar, just fine.
>>>
>>> Now I want to notify the user by open a small form with informations
>>> based on the callerID, so I gather some infos from by database (customer
>>> / contactperson) and gets at DataTable with all that information. Then i
>>> opens a new form and send the datatable to that form.
>>>
>>> Somehow the notify form i open i another thread than my application
>>> (mabye the TAPI thread) but when the form opens its getting the (not
>>> responding text on title bar).
>>>
>>> Could someone please help me here?
>>>
>>> Kind regards
>>> Johnny E. Jensen
>>>
>>>
>>
>>
>
>

Bookmark and Share