I am pretty new to reprop.dll. And we have recently ported our C++ code to MSVC and compile refprop using Intel Fortran compiler and from then onwards I am getting an error while call IntSetup(). I have populated all the required fields int CINPUT.cstrin but still for some reason it reading something wrongly and not able to find the file.
And I have populated the cstrin like below to make sure the string is null terminated but I am still running into this file not found error. Any help is much appreciated.
Hi,
I am pretty new to reprop.dll. And we have recently ported our C++ code to MSVC and compile refprop using Intel Fortran compiler and from then onwards I am getting an error while call IntSetup(). I have populated all the required fields int CINPUT.cstrin but still for some reason it reading something wrongly and not able to find the file.
Below are my decalaration
extern __declspec(dllimport) struct { char cstrin[255] = {'\0'}; char cstr[255] = { '\0' }; }CINPUT;
void INTSETUP(int iNoComp, int iRefCode);
And I have populated the cstrin like below to make sure the string is null terminated but I am still running into this file not found error. Any help is much appreciated.
strcpy(CINPUT.cstrin, sString.data()); CINPUT.cstrin[sString.length() + 1] = { '\0' };
Error: