Raising TAPI Events?
Jul 26, 2010
I have a TAPI program that is very similar to [URL] I have a delegate ...
Delegate
Sub TapiEventCallback(ByVal
dwMessage As TapiEvent,
ByVal dwParam1
[code].....
From my program TAPI will call the number. My problem is that its not raising any events. I really need CallStateChange. I raised it from address and moved it up to my TAPI Manager. I put break points everywhere and I can not get anything to raise.
View 1 Replies
ADVERTISEMENT
Sep 8, 2009
I'm writting what I thought would be a fairly simple TAPI program in VB.Net 2008 SP1 using the TAPI3Lib.dll. It is supposed to dial out a number and once connected play a wav file then wait for digit input. I got through the dialing but it seems I never get the CS_CONNECTED event letting me know the line was picked up. All I get is CS_INPROGRESS then the call is placed and a CS_DISSCONNECTED if I call the call.disconnect method.
I've double checked my registering for events and my event filter and they both check out (otherwise I wouldn't get the two call states I do get). Is there anything else I'm missing or is this normal? I'm calling out with a Conexant HDA D330 MDC V.92 Modem. The call is correctly placed, my phone rings and I answer it. The call state never changes to connected. If I hang up my phone you hear me hang up through the modem and you then hear a dial tone since the modem in the computer hasn't hung up.
View 4 Replies
Jul 22, 2009
I have a windows application which raises a particular event.I need to create a COM callable class whic will allow VB 6.0 to subscribe to this event.I have done a fair amount of research on this and am confused as hell.
View 3 Replies
Aug 15, 2011
can I call shared events contained in one class from another class?
for example:
logonclass.vb : handles login logic and authenticates against database
logonmanager.vb: hold current user reference and some logon and timeout events
Logon.vb: A form with a submit button.
I would like to do something like this but I can't get the compiler to agree with it
If VerifyEntries() Then
Try
privLvl = LoginClass.AttemptLogin(txtUserName.Text, txtPassword.Text)[code].....
If this isn't the proper way to wire things together let me know so I can learn to structure differently. In my planning it seemed like I was raising a lot of extra duplicate events from my logonclass to my loginmanager class. Then the loginmanager had to raise it again for the main form to see the change event. It got me thinking that if I publicly shared the events and could raise them from wherever then it would cut down on the amount of events I needed in code and the amount of them flying around at runtime.
View 2 Replies
Dec 27, 2010
I am currently trying to make a calendar project it has 2 user controls one is the calendar and the other is the calender day control. When the month changes in the calender control I need to raise an event in daycontrol to update any holidays. In the calendar control I have the following code for the event:
Friend Event MonthChanged()
Public Sub New()
' This call is required by the Windows Form Designer.
[Code].....
View 2 Replies
Jul 14, 2011
I want to have a collection of a class which inherits picturebox, with a couple of extra properties, so essentially the same. Only I get an error at runtime saying : 'An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.' Here Is my code, I know that the error occurs here :
[Code]...
View 3 Replies
Jun 4, 2012
I have 3 classes in 3 separate dll.
1) Class "BaseForm" that inherits from System.Windows.Forms.Form with "MyEvent" declared as Public Event ()
2) Class "MyForm" which inherits from "BaseForm"
3) class "MyClass" which has a public property "ExternalObject" of "BaseForm" type (the private variable is declared WithEvents)
I make the following steps:
1) intercept the Form LOAD event in "BaseForm"
- Instance the class "MyClass", Assign public property "ExternalObject" = Me
- I do a RaiseEvent "MyEvent" in "BaseForm"
2) "MyEvent" is triggered BEFORE in "MyForm"
3) AFTER "MyEvent" is triggered in "MyClass".How Can I Raise event Befor in "MyClass" and then in "MyForm"?
View 1 Replies
Sep 6, 2009
My windows application needs to raise an event in a COM callable assembly so unmanaged code can pick up on the event.I am sick of this. All the crazy tags required for COM callable is doing my head in.
View 1 Replies
Jan 8, 2009
I'm creating macrobutton fields in Word by .NET to add fields. I need someway to figure out when a field is copied and pasted. Is there a kind of event which will be reased within Word to .NET?
This is the code to generate the fields:
[Code].....
General I need to add a field to Word with a given name and a guid and when it's clicked, moved, copied or pasted. I need an event to do something with it.
View 1 Replies
Feb 8, 2012
My application has 1 main form and three other forms which raise events to my main form. I noticed that the memory starts at 77,000 K and increases substationally over a few hours maby be to 250,000k and ever increases.The main form has a dataset and a bound datagridview which gets refreshed with data. Basically it's a taxi booking application. The booking form raises an event to the main form and the main form refreshes the jobs and displays them on the dgv.
View 8 Replies
Dec 20, 2010
I'm trying to write a wrapper to a service, which will be used by an existing VB6 project. I've got most of the basic framework working, except for one important aspect: I can reference the wrapper in a VB6 project and subs/function calls etc. work as expected, but events do not. The events are visible in the VB6 app, but they never fire.
VB.NET Code:
Public Event Action_Response(ByVal Status as String)
Public Function TestEvent()
RaiseEvent Action_Response("Test Done")
[Code]....
So, the cmdTest button code prints 'Done' as expected, but the Action_Response event doesn't fire. Is there something else do I need to do to get the event to fire?
View 1 Replies
Aug 27, 2009
Raising events in multithreaded classes?
I am running a class(gamepad handler) that uses many child threads to check for key input and the like then it raises events to my form to sort out the needed reaction, Is there a way to make the event raises on the same thread as the class itself.
View 3 Replies
Apr 4, 2012
the question is really what is the correct convention (style) for raising and handling events. When a button is clicked it is generally handled by this method. [Code]
I have recently been trying to follow this convention by creating my own EventArgs class and inheriting the system.eventargs, Then adding my own properties. The problem is as my projects get bigger/complex I seem to be writing multiple eventarg classes. I then decide to try and create a generic eventarg class but this then seemed pointless thinking it would be easier just to pass the object directly instead of wrapping it up in "someEventArg" i have created.
View 4 Replies
Aug 29, 2010
I have a custom (inherited) TabControl which adds Drag/Drop functionality to it, so that one can drag the tabs around, either within the same control (to re-order them) or to and from other TabControls. I've noticed some time ago that my TabControl however was not raising its MouseClick and MouseUp events (or actually: it is not calling its OnMouseClick and OnMouseUp methods, which comes down to the same thing). I've been struggling with this problem for a long while and I finally figured out what is happening. I'm no closer to figuring out what to do about it though... The problem seems related to the drag drop functionality. I have this code in the OnMouseDown method (which is raised as usual):
[Code]...
View 10 Replies
Apr 27, 2011
I am attempting to test that the event handlers between an interface and controller are wired properly. The system is set up like the example below:
[Code]...
View 1 Replies
Mar 30, 2011
Problem that you may have when dealing with two objects that are raising some events. Here, to make it obvious, I am closing the form, but the problem can be experienced with any other 2 classes event. First, what is the problem !
Let suppose that by pressing a button, you want to raise a custom event, then execute a method and then close the form
In that case, you may use a code similar to this
Event BeepIt()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RaiseEvent BeepIt()
[CODE]...
View 14 Replies
May 1, 2009
long story short, I have created a ListView type control, using UserControls for the parent control and the ListViewItems. Most the of the control is written and works fine, right up to the point where I tried to replicate the 'Control.SelectedItems(0).Index' property and the 'SelectedIndexChanged' event.
Each child object knows its index value, and could pass this value via the SelectedIndexChanged event (assuming this is how it works in a normal ListView control -- user clicks on an item, and that item fires an event updating the selected index value in the parent object).
How does the child object raise an event in the parent object? I have a feeling this could be done with Delegates, but I'm still learning about their usage.
View 1 Replies
Aug 12, 2010
Does anyone know if Visual Studio 2010 has a good/Updated Tapi sdk? Or Does any one know where I can get a Tapi Sdk that is in .Net format?
View 1 Replies
Jan 13, 2008
Im developing a TAPI Applicationi had many problems with Acepting the call and detecting DTMF tones, but now these problems are solved,,, now the problem im facing is to play a wave file to the user who is on the phone...... Is there anyone who can gimme code or tel me how to do this in Vb.net
View 5 Replies
Jul 27, 2010
I have a modem that CLAIMS to be voice, i still can not get it to do what I want.
1) The modem dials and makes my phone ring, when I pick it up the program does not reconize the event. I have to physically click on button that says Talk. Then my CallStateChanged fires.
2)My other issue is that I can not get any sound to come over the line. I essentially have a wav file that play nicelys on the computer but the modem is not picking it up. Is there some way that I can test the modem to be voice?
View 2 Replies
Mar 22, 2010
We have a VB.NET application that is using the TAPI3Lib.dll. At this one site we can multiple addresses for the same Phone extension. For example for extension 149 we are getting Extension 149 - Address # where # is 0 thru 208. Is there a way to just get "Extension 149"? Have downloaded some free utilities and they only show "Extension 149".Below is the same of code:
Code
Dim AddressCollection As ITCollection = coTAPI.Addresses()
For Each loAddress As ITAddress In AddressCol
[code]....
View 2 Replies
May 27, 2012
I have problems by paying a wav through the phone line could somebody help me I use getLineID to get the id device for the wav/out but my wav steel plays over the sound card
View 1 Replies
Mar 22, 2010
I am trying to determine if a modem is busy. I have tried using serial ports which from what i can see just tells me that something is tied to a port or not. It does not tell me if the modem is busy.
My overall question is How do can I determine if a modem is busy? For an added bonus, also is there a way to tell what device is using a particullar port?
View 1 Replies
May 17, 2011
I'm looking at writing a application that interfaces with TAPI via the samsung open TSP. The problem I'm having is that after a few days research I am unable to find much info regarding coding for TAPI. There also appears to be alot of contradicting information out there too...
Has anyone got any pointers, examples or sources that I can start looking through??
View 1 Replies
Jul 29, 2010
I have been working on a tapi program that will play a wav file over a tapi phone line. I am look for a GOOD quality voice modem. Any suggestions. The one I am working on is really poor for this project. Things I am looking for.....
[Code]...
View 1 Replies
Apr 3, 2009
as I am working on my latest app (tapi interface) I have noticed that things on the form do not always refresh. I am at a loss to explain it. So, in VB.net I have a form with 1 listview, 2 textboxes, 2 labels
[Code]...
View 2 Replies
Jan 8, 2010
I have with a good level of success got a C# application to use TAPI to connect to my office PBX and dial and hangup calls but need to go further and be able to monitor activity and provide CTI to client pc's as well as integration back to my companies web based CRM.
I am focusing on the client app for CTI popups and dial/hangup functions as the phone number lookup to the CRM is relatively easy.
I initially started by registering one handset in the tapi that I could then dial and hangup, I even seem to have registered all the handsets on the system and to be able to dial from any of them but I don't seem to be able to get any activity logs as to when any of the handsets are ringing etc.
Does anyone have any example tapi code that can get me started or point me in the right direction? I can work with C++, C# or VB.Net as I am okay with any of them.
View 1 Replies
Mar 8, 2010
figured out a different way to code it that _should_ work around the problems people pointed out before.... but one problem is still the same, the examples I find to code pieces of this are all for old versions of visual basic, and don't workI'm a firefox extension developer. I wrote an extension to allow both private and normal browsing windows simultaneously by having two firefox processes. I figured out a way on the Mac to raise the private browsing process when appropriate... it looks like visual basic is the way to do it on Windows... so I'd like firefox to run a visual basic program that does the following:Look through the process table for all firefox.exe processesFind out the process id of the process that called the visual basic scriptThrow out the process ID of the parent process... now we should just be left with the "private browsing" firefox process
View 2 Replies
Jun 28, 2010
I am using the AxWindowsMediaPlayer1 control to play MP3 sound files in my application.
I would like to lower and raise the volume (master) via keypress from my gamepad.
I already have the logic for that established, I just do not see any way to raise and lower the volume within the Windows Media Player control.
View 9 Replies
Mar 16, 2012
I need to raise UAC shield. I found code over net
MyBase.OnLoad(e)
If Not IsAdmin() Then
AddShield(Me.elevateButton)
[code].....
View 1 Replies