RobEmDee
Well-known member
I have downloaded some sample code written in VB.NET which provides a wrapper around methods from a C Library that I need to access.
Sample:
Declare Function CPXaddrows Lib "cplex80.dll" _
(ByVal env_ As Integer, _
ByVal lp_ As Integer, _
ByVal ccnt_ As Integer, _
ByVal rcnt_ As Integer, _
ByVal nzcnt_ As Integer, _
ByVal rhs_ As Double(), _
ByVal sense_ As Byte(), _
ByVal rmatbeg_ As Integer(), _
ByVal rmatind_ As Integer(), _
ByVal rmatval_ As Double(), _
ByVal colname_ As String(), _
ByVal rowname_ As String()) As Integer
My question is how would I accomplish this same kind of functionality using C# syntax. I know I can intermingle VB.NET and C#, but would still like to know how to do this with C#.
Sample:
Declare Function CPXaddrows Lib "cplex80.dll" _
(ByVal env_ As Integer, _
ByVal lp_ As Integer, _
ByVal ccnt_ As Integer, _
ByVal rcnt_ As Integer, _
ByVal nzcnt_ As Integer, _
ByVal rhs_ As Double(), _
ByVal sense_ As Byte(), _
ByVal rmatbeg_ As Integer(), _
ByVal rmatind_ As Integer(), _
ByVal rmatval_ As Double(), _
ByVal colname_ As String(), _
ByVal rowname_ As String()) As Integer
My question is how would I accomplish this same kind of functionality using C# syntax. I know I can intermingle VB.NET and C#, but would still like to know how to do this with C#.