pgmfi.org

Hacking up Honda's ECU
It is currently Tue Apr 16, 2024 1:49 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help me! Tapi problem?
PostPosted: Wed May 26, 2004 6:18 am 
I had build a OCX to package some basic tapi function to useing it in VB or C#.

I use C# to develop my application use this OCX.
I drag this ocx (control) from toolbox and drop it into my form.
And init some property such as LineName...(I call Line1) and declare events such as Incommingcall (Event), DigitReceiced...
And then i open this line which associated with LineName property.
It run well. in this time i can get caller id, digit received which user press when line is connected...

But when i use two line in my application i mean i have two modem install in my computer.
So i drag another one ocx and drop to my form. and then init property and event for it that similar above in this case (I call Line2).

i open two line in the same time and observed by two ocx.

But when have a new incomming call the event incommingcall occur it just jump to the function which i had declare for incommingcall event of the which the first ocx which i drag and drop into the form. Although the new call is call to the secon line. I mean it must be jump to the function which i had declare for incommingcall event of the which the second ocx.

I mean every new incomming call it alway process in these function which i had declare for these event of the ocx which i firstest i had drag and drop into the form. It regardless the call is call to what line Line1 or Line2

Could some one help me


Top
  
Reply with quote  
 Post subject:
PostPosted: Sat Oct 23, 2004 12:29 pm 
Offline

Joined: Tue Jul 27, 2004 3:01 am
Posts: 2945
Location: Tampa bay, Florida
When you get an 'incoming call' event, you should check which line it came from. Re-write your OCX with some flag for 'incoming call' and check for that flag in the main application


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group