Menu

DWSIM.Thermodynamics in C++

Manivelan
2019-03-13
2019-03-15
  • Manivelan

    Manivelan - 2019-03-13

    Hi
    Following code i typed in c++/cli it is working fine except last.

    -----------------------START-----------------------------------
    T = 373.15;//K
    P = 101325;//Pa
    array<string^>^ gcomp = gcnew array<string^>{"n-Hexane", "n-Octane"};
    array<double^>^ comp = gcnew array<double^>{ 0.5,0.5 };
    int a = 0;
    array < String^,2 >^ result2 = calc.PTFlash(prpp, a, P, T, gcomp, comp);
    ----------------------------------------END--------------------------------------------------
    Following code from VB.net it working fine. This same code i used in c++/cli above i highlighted i don't know how to assign result2 variable. Please help ASAP
    -------------------VB.net------------------
    object[,] result2 = dtlc.PTFlash(prpp, 0, P, T, new string[] { "Water","Ethanol"}, new double[] {0.5, 0.5 });
    -------------------VB.net------------------</double^></double^></string^></string^>

     
  • Daniel Medeiros

    Daniel Medeiros - 2019-03-15

    Don't you know how to convert the last line to C++? I don't. :)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.