Quantcast
Channel: Questions in topic: "dllimport"
Viewing all articles
Browse latest Browse all 160

Can you start another application by running an Unity project? (using a proxy dll)

$
0
0
Hi, I’m trying to create a link between Unity and a traffic simulation program (Vissim). Vissim has it’s own proxy to communicate with Unity. I’m now trying to run Vissim via an Unityscript. The scripts are stated below. CyclingSimulator.cs public void Connect() { Debug.Log("Loading " + networkFileFullPath); if (!DrivingSimulatorProxy.Connect(900, networkFileFullPath, null)) { Debug.LogError("Could not establish connection to VISSIM"); return; } Debug.Log("Network loaded. Starting simulation"); loaded = true; } DrivingSimulatorProxy.cs [DllImport("DrivingSimulatorProxy.dll", EntryPoint = "VISSIM_Connect", CharSet = CharSet.Unicode, SetLastError = true)] public extern static bool Connect(ushort versionNo, string networkFileName, string snapshotFile); When i run my Unity project it only gives me the message: Loading C:\Users\....\Network.inpx And nothing happens. How can i solve this? The DrivingSimulatorProxy.dll is located in the project directory. The full files can be found on this github: https://github.com/fcl-engaging-mobility/UnityScripts (In the /Assets/Scripts/Vissim folder)

Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>