Menu

#220 DWSIM.Thermodynamics.StandaloneLibrary is support C++ or VC++ or MFC?

5.6
closed
2019-03-13
2019-03-13
Manivelan
No

Hi,
Am using DWSIM.Thermodynamics.StandaloneLibrary.dll. I followed "Example1.vb" source code it working fine. But we are trying to convert "Example1.vb" to c++ is not working . Please check my following code

------------------------------------------------------START-----------------------------------------

include "pch.h"

include <iostream></iostream>

include <windows.h></windows.h>

include <stdio.h></stdio.h>

include <stdlib.h></stdlib.h>

include <math.h></math.h>

include <memory.h></memory.h>

include <time.h></time.h>

include <conio.h></conio.h>

include <tchar.h></tchar.h>

include <winbase.h></winbase.h>

include <windows.h></windows.h>

//using namespace DTL::Thermodynamics::StandaloneLibrary::tlb;

HMODULE hDWSim;

int main()
{

hDWSim = LoadLibrary("DWSIM.Thermodynamics.StandaloneLibrary.dll");


//DTL.Thermodynamics.Calculator dtlc = new DTL.Thermodynamics.Calculator();
//dtlc.Initialize();

}
--------------------------------------------END--------------------------------------------------

How to use this class "DTL.Thermodynamics.Calculator()" in c++
//DTL.Thermodynamics.Calculator dtlc = new DTL.Thermodynamics.Calculator();
//dtlc.Initialize();

* It is possible to work in C++ or VC++ or MFC*
Kindly Replay ASAP

Discussion

  • Daniel Medeiros

    Daniel Medeiros - 2019-03-13

    Honestly, I don't know, but it should work either through the COM interface or through C++/CLI.

     
  • Daniel Medeiros

    Daniel Medeiros - 2019-03-13
    • status: open --> closed
    • assigned_to: Daniel Medeiros
     
MongoDB Logo MongoDB