question

Lucas Klein avatar image
0 Likes"
Lucas Klein asked Phil BoBo answered

DLL Maker for FlexSim 2022 Update 1

Hello,

I am trying to use the DLL Maker in FlexSim 2022 Update 1. For common tasks it works fine, but when I try to use array functions, the DLL pops out some exceptions in the model. Back in 2020 I had this same issue, as seen in the post below:
https://answers.flexsim.com/questions/85962/access-array-labels-with-dll.html

The solution was to update the header files with the ones present in "FlexSim folder/program/system/include" and it worked at that time. But now in 2022 Update 1 I noticed something: the file "basicutils.h" doesn't exist anymore and I don't know if this can be causing this issue.

Another thing is that now I can't compile my DLL because it keeps saying that can't open the "coroutine" source file, even after I already added the "coroutine.h" file into my solution, as seem below:
1660053594790.png


if there is a way to update DLL Maker to 2022.1, please let me know.


thanks in advance.

FlexSim 22.1.3
arraydevelopmentdllc++dll maker
1660053594790.png (151.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered

To access coroutines, you need to update your project to use C++20. You may also need to update Visual Studio if you are using an older version.

1660054170838.png

The DLLMaker is forward compatible. DLLs that you built with the files back in 2020 will work with FlexSim 2022 Update 1. You don't need to "update the DLLMaker." You can use DLLs built with old versions of the DLLMaker with new versions of FlexSim. That's its purpose. If you are willing to update your DLL every version of FlexSim, then you can use the Module SDK instead to have access to the latest features. The DLLMaker purposefully only has access to a small subset of FlexSim features (the global commands primarily) in order to maintain forward-compatibility.


1660054170838.png (39.1 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.