Is there any way to call C#/JAVA in easylanguage?
Thanks
Easylanguage call C#/JAVA
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
steven, if you need to run an application outside of MC, all you have to do is build a small DLL stub that executes it. MC can then call the DLL, which in turn calls the .exe. If you need to pass information to the application then that can be done too. If you need to return information back from the application to MC then it may be possible depending on the application. Even if you can, you have to be careful you don't stall MC by waiting for the returned information. To avoid this you can use a multi-threaded DLL stub, where one thread waits for the information to be returned, and the other is called by MC and checks if the information is available or not. If it is then it returns the information back to the study. If it isn't then it returns to the study, possibily with a flag to say the information has not yet been returned, and checks again on the next cycle.