You don't use the Object type using the DLL Maker. The Object type is a FlexScript class, not a C++ class. The new FlexScript Class API is not compatible with C++. The old global FlexSim commands are compatible with both FlexScript and C++. If you are using the DLL Maker, then you should be using those global commands.
Also, the DLL Maker is forward compatible. A DLL built for FlexSim 7.7 can be loaded and run using any version from FlexSim 7.7 to now, including FlexSim 2022. The latest version of the DLL Maker from 2017 works perfectly fine to generate DLLs that are compatible with FlexSim 21.2.4 and FlexSim 22.0.0. The DLL Maker project does not need to be updated with newer versions of FlexSim.
If you want to generate a DLL that is tied to the FlexSim version it is built against, you can use the Module SDK. Using the Module SDK, you include the latest header files to access public classes and functions directly. The downside of this approach is that you must re-compile your DLL for each version of FlexSim that you want to target (using the latest headers for that version). The upside is that you can add and subclass FlexSim object classes directly. You can completely customize the program with your own library of hierarchical classes. This is how most of the objects in the library are built (such as AGV, Conveyor, People, Process Flow, GIS, FloWorks, etc.).
See also Dot syntax in FlexSim Dll Maker - FlexSim Community and How create subnodes using DLL Maker - FlexSim Community
Phil BoBo
Sr. Manager, Software Development