question

Doris Y avatar image
0 Likes"
Doris Y asked Phil BoBo edited

FlexSim 2019.1.2 call DLL Maker17.2 Fail

I used Visual Studio 2013 to compile dll maker v17.2 in Win10, and it will generate two dll files (DllMaker.dll and DllMaker_x86.dll).

I try to call DllMaker.dll or DllMaker_x86.dll function in FlexSim2019.1.2, but FlexSim both can't call dll function successful. I get the exception seen in the System console in the image below.

2021-08-09-13h48-11.png


Is I need to setting something in Visual Studio 2013 before compile?

I try to find solution from dll maker tutorials and FlexSim community, but it still can't solve this problem, please kindly help.

FlexSim 19.1.2
flexsim 19.1.2dll makervisual studio
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
1 Like"
Phil BoBo answered Phil BoBo edited

Change your DLL path from "DLLMaker_x86.dll" to "DLLMaker.dll".

DLLMaker_x86.dll is used when using 32-bit FlexSim. If you are using 64-bit FlexSim, then you should just be using DLLMaker.dll. Ensure that you are building your DLL in 64-bit by selecting "x64" for the target platform in the dropdown in Visual Studio.

See https://nextcloud.flexsim.com/s/aTji7HXwKYBbSGc for an example video demonstrating the basic usage of the DLL Maker project.

Make sure you actually have a compiled DLLMaker.dll file in the same directory as your model.

· 1
5 |100000

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

Doris Y avatar image Doris Y commented ·
Got it, thanks for your reply. :)
0 Likes 0 ·