Hi,
I noticed that my .dll file stopped working when I changed from Flexsim 7.5 to 7.7 and after asking Phil from Flexsim I got the answer, which is that the stringreturn function is deprecated, but instead you can return strings directly from the dll/C++ function instead of using the stringreturn function. There are also a few changes to the function definitions in the dll
Quote:
In your function, return a Variant, and change visible into __declspec(dllexport). For example:
__declspec(dllexport) Variant dllcommand1(FLEXSIMINTERFACE) {
// test passing parameters in usercommand
string par1 = parstr(1);
pt("string parameter ");pt(par1);pr();
return par1;
}
|
Also, on the dll side the param() declaration does not work yet, but
Quote:
parstr(), parval(), and parnode() should continue to work for the foreseeable future. If you update your flexsimcontent so that you have the param() declaration, you should be able to change them into param() if you want.
|
Axel