Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mitel 3300 SDK

Status
Not open for further replies.

majidjm

Programmer
Aug 4, 2010
37
Hi
My problem is that I don't know what I have to set in in the below function stead of callback1[/color red] parameter:
int result = MitaiClient80.SXSetCallback(__arglist
(
Constants.SX_PBX_HANDLE, hPbxObject,
Constants.SX_CALLBACK_PROC, callback1[/color red],
Constants.SX_CALLBACK_DATA_PTR,
null
)
);
I know I have to set a proceture here but I don't know what proceture I have to add?
I will appreciate you if you help me
 
I'm having a lot of trouble getting a call to GetMonitorInfo to work, and I
suspect the problem is to do with how I've declared the MonitorInfo structure and how it gets marshalled to the call.

Anyone out there done this, and if so, what's wrong with the code below.
Thanks in advance! ;)

public static int SetCallback(System.IntPtr g_hMonitor, System.IntPtr hPbxObject, MyCallback callback)
{
//SXCallReceivedEvent cs = new SXCallReceivedEvent();
int result = MitaiClient80.SXSetCallback(__arglist
(
Constants.SX_PBX_HANDLE, hPbxObject,
Constants.SX_CALLBACK_PROC, new MyCallback(MonitorCallback),
Constants.SX_CALLBACK_DATA_PTR,
null
)
);
return result;
}




[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void MyCallback();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top