You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered: