Changeset 280


Ignore:
Timestamp:
Oct 25, 2009 2:34:57 AM (10 years ago)
Author:
bjarni
Message:

Added CSharp [In, Out] modifiers to CoinGetSolutionValues? method arguments to avoid problems sending Arrays through DllImport?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.4/CoinMP/examples/csharp/Coinmp.cs

    r253 r280  
    148148        [DllImport("coinmp.dll")] public static extern int CoinGetRowCount(IntPtr hProb);
    149149
    150         [DllImport("coinmp.dll")] public static extern int CoinGetSolutionValues(IntPtr hProb, double[] activity,
    151                         double[] reducedCost, double[] slackValues, double[] shadowPrice);
     150        [DllImport("coinmp.dll")] public static extern int CoinGetSolutionValues(IntPtr hProb, [In, Out] double[] activity,
     151                [In, Out] double[] reducedCost, [In, Out] double[] slackValues, [In, Out] double[] shadowPrice);
    152152
    153153        [DllImport("coinmp.dll")] public static extern String CoinGetColName(IntPtr hProb, int col);
Note: See TracChangeset for help on using the changeset viewer.