question

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

Dot syntax in FlexSim Dll Maker

Dear All,

I am exploring the DLL functions with DllMaker template, but trying to use the dot syntax I am not able to compile my DLL, I did it only with the old syntax. Is there any DllMaker template that includes the dot syntax or someway to work with it?

Thanks in advance.

FlexSim 19.0.2
dlldot syntaxdll makersyntax
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Phil BoBo commented

Dot Syntax in flexscript can't be compiled in C++ mostly because we simplified the syntax in flexscript to get rid of the -> operator.

https://answers.flexsim.com/questions/36308/how-to-use-new-flexscript-in-sdk.html

This answer shows some examples of how to use dot syntax in a DLL.

· 8
5 |100000

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

Lucas Klein avatar image Lucas Klein commented ·

I tested many ways to apply the -> syntax on the DllMaker but got no success, follow the image with the code that I tried to Build in Visual Studio

0 Likes 0 ·
report.jpg (276.5 KiB)
Jacob Gillespie avatar image Jacob Gillespie ♦ Lucas Klein commented ·

@Lucas Klein You will want to use this:

ObjectDataType* fila = model()->find("Queue1")->objectAs(ObjectDataType);
0 Likes 0 ·
Lucas Klein avatar image Lucas Klein Jacob Gillespie ♦ commented ·

@Jacob Gillespie Thanks for the info, I got how it works, but yet couldn't be able to put that code to work. Am I missing something?

0 Likes 0 ·
report2.jpg (237.0 KiB)
Show more comments