Hi,
I encountered a problem while rebuilding a project of my module DLL with visual studio 2015 in FlexSim 16.1.2. The DLL was compiled with VS2013 and now I would like to upgrade to VS2015 without changing FlexSim version, but FlexSim returns an exception with query command.
I reproduced my issue in a very simple project (attached file test.rar) where I implemented a single function "test" which executes the standard FlexSim command "query". In the attached model you can find a table and two scripts. The first script executes the query with FlexScript command, the second one executes an usercommand which recalls my DLL function "test", which I have implemented coping FlexScript.
The first script works perfectly, the second one no because an exception is caught. Does somebody help me? Any suggestion from developers @anthony.johnson, @phil.bobo, @Matt Long, ...?
I try to summarize what I have done to realize the DLL:
1- download SDK for FlexSim 16.1.0 from bitbucket;
2- create a the DLL with VS2015 using FlexSim wizard;
3- change setting of project to compile with VS2015 (screenshoot1.png) and for x64;
4- create the model and execute the script;
I summarize also my system:
- win10;
- FlexSim 16.1.2;
- VS2015;
Any suggestion to solve the problem are very useful. For futher details contact me.
Thanks.