From: Babar S. <bab...@ya...> - 2004-11-29 14:37:34
|
I created a new .Net Managed C++ COM object [iaxclientManaged]. This is again very portable library and great work by IaxClient team thanks to Steve Kann. http://www.geocities.com/babarnazmi/IaxClientManaged.zip its a small but simple .Net MC(Managed C) Client DLL (not complete) Sample code for VB.net how to call MC++ COM DLL:- Const AUDIO_INTERNAL_PA=1 Const IAXC_FORMAT_GSM=2 Private Sub Form1_Load(...) Handles MyBase.Load a = IaxClientManagedControl1.IaxInit(AUDIO_INTERNAL_PA, 4, IAXC_FORMAT_GSM) 'where 2nd parameter is number of lines support IaxClientManagedControl1.SetCLIID("Babar Shafiq", "123456789") End Sub Private Sub Button1_Click(...) Handles Button1.Click a = IaxClientManagedControl1.Dial("babar", "babar", "192.168.1.6", "999") End Sub Private Sub Form1_Closing(...) Handles MyBase.Closing a = IaxClientManagedControl1.iaxShutdown() End Sub Private Sub Button2_Click(...) Handles Button2.Click a = IaxClientManagedControl1.HangUp() End Sub Private Sub Button3_Click(...) Handles Button3.Click a = IaxClientManagedControl1.Hold() End Sub Private Sub Button4_Click(...) Handles Button4.Click a = IaxClientManagedControl1.TogglePTT(1) 'or TogglePTT(0) End Sub Private Sub Button5_Click(...) Handles Button5.Click a = IaxClientManagedControl1.SelectLine(1) 'any line to select 0=1st line and so on End Sub Private Sub Button6_Click(...) Handles Button6.Click a = IaxClientManagedControl1.AcceptCallonLine(1) 'any line to select 0=1st line and so on End Sub Private Sub Button7_Click(...) Handles Button7.Click a = IaxClientManagedControl1.RejectCallonLine(2) 'any line to select 0=1st line and so on End Sub same use in .Net C# static void Main() { Application.Run(new Form1()); } private void Form1_Load(object sender, System.EventArgs e) { a = IaxClientManagedControl1.IaxInit(AUDIO_INTERNAL_PA, 4, IAXC_FORMAT_GSM); } private void button1_Click(object sender, System.EventArgs e) { iaxClientManagedControl1.Dial("babar","babar","192.168.1.6","233"); } etc I don't know why i did this :-) but some people wants a ""Managed .Net COM Object"". Regards, Babar Shafiq Nazmi. Geoff Nordli <ge...@gn...> wrote: Babar that would be great!!! Will it be a VS.NET solution/project so I can compile my own .NET Managed object from CVS? thanks, Geoff --------------------------------- From: Babar Shafiq [mailto:bab...@ya...] Sent: Friday, November 26, 2004 10:01 AM To: Geoff Nordli; iax...@li... Subject: Re: [Iaxclient-devel] .NET managed COM object I am working on it, i will release it in a day or two. Geoff Nordli <ge...@gn...> wrote: On the list someone said they were working on .NET managed object. I was wondering how the progress was going on that. How difficult of a task is it to convert the library into a .NET managed object? It would be nice to have a vs.net project added to the CVS. I am sure that I could find a sponsor if someone was willing to work on it :) Geoff God is a great Programmer __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ===== God is a great Programmer __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |