SRL Programming in VC# .NET

From: General Listmanager <General.listmanager@pysdiscussext.py.intel.com>
Date: Fri Jul 08 2005 - 13:06:51 EDT

From: "Ronak Sutaria" <rss26@njit.edu>

Is it still possible to use the C libraries as unmanaged DLL.

I'm trying as follows:
[DllImport("libsrlmt.dll", CharSet=CharSet.Auto)]
static extern int sr_getboardcnt(string class_namep, int *boardcntp);

voxh = sr_getboardcnt("Voice", &numvoxbrd);
Console.WriteLine("numvoxbrd: {0}", numvoxbrd);

I get 0 when I set CharSet=CharSet.Ansi and get -1 when I set it to Auto. I am expecting a 1 as I have a D/4PCIU installed. Is there something that I am doing wrong here. I also dont get the right value for:

dxxxdev1 = dx_open("dxxxB1C1", 0);
Console.WriteLine("subdev_name: {0}", dxxxdev1);
                                                        
dev_name = ATDV_NAMEP(dxxxdev1);
Console.WriteLine("dev_name: {0}", dev_name);

Strangely I get "Invalid Device" for ATDV_NAMEP here, but when I pass ATD_NAMEP(0) I get "SRL_DEVICE"

Can someone explain what exactly is happening here and where am I going wrong.
This will be a huge help!!

Thanks,
Ronak

On 7/8/2005 12:30:10 PM, Ray Cassick wrote:
>The current Dialogic SDK does
>not directly support the .NET
>languages like VB.NET or C#.
>It is supported under the
>newer version of C++ however
>but they are not managed code
>libraries. They are standard C
>libraries.
>
>-

-

To reply: mailto:General.30809@pysdiscussext.py.intel.com
To start a new topic: mailto:General@pysdiscussext.py.intel.com
To login: http://membersresource.intel.com/webboardnet/wb.aspx?board=general
Received on Fri Jul 08 12:18:19 2005

This archive was generated by hypermail 2.1.8 : Sat Jul 16 2005 - 03:48:35 EDT