question

stefano L avatar image
0 Likes"
stefano L asked K_yun commented

How to create a function in c++ and call it in PF

Hi everyone,

Is it possible to create a function in c++ and call it up in the Process Flow, e.g. through custom code? If so, how can it be done?

FlexSim 19.0.0
c++c++ and user commandsfunction
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

Steven Hamoen avatar image
3 Likes"
Steven Hamoen answered K_yun commented

@stefano L I think the easiest solution is to make a usercommand and then call that usercommand in the PF. The usercommand itself can be a C++ command or can call a function from a DLL

· 6
5 |100000

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

stefano L avatar image stefano L commented ·

Ok, thank you very much @steven.hamoen. Is there an example I can learn from?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ stefano L commented ·

Here's a video I made a while ago that shows the steps involved with using the DLL Maker for the first time.

It has no audio and didn't capture the mouse cursor, but it shows the steps needed to get started with the DLL Maker pretty well.

To call a C++ function from ProcessFlow, you just use a Custom Code activity and configure it the same way that the video shows a trigger being configured.

2 Likes 2 ·
stefano L avatar image stefano L Phil BoBo ♦♦ commented ·

@phil.bobo thanks for the video, very useful.

0 Likes 0 ·
Show more comments