Search found 10 matches
- 15 Nov 2020
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Hi kh_model, Thanks for your reply. I talked to an expert programmer a few weeks ago about this issue and he stated that it is unlikely to obtain an array returning from a function call in easylanguage. To obtain the three funudamental values by swe_calc function (longitude,latitude and speed) it wi...
- 25 Oct 2019
- Forum: MultiCharts
- Topic: Playback and Simulated Trading
- Replies: 4
- Views: 1892
Re: Playback and Simulated Trading
I agree that being able to do paper trading in playback mode, and not only when connected to real-time data feed, will be an important tool for learning and testing ideas. I hope it will be implemented soon in Multichart 64.
- 26 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Janus, Thanks for taking the time to reply. Passing strings should have no issues since the first two calls work, I copied the code here for your convenience // This call is working DefineDLLFunc: "C:\Swiss Ephemeris\ephe\swedll64.dll",long,"swe_set_ephe_path",string; swe_set_ephe_path("C:\Swiss Eph...
- 26 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Please help...Any idea on how to pass an array by reference to an external DLL?
I can share my wrapper code in VB6 (but can compile it in VB.NET) if someone is interested.
It has some very useful function for the calculation of planetary position. Ask for any further information.
Thank you
Paolo
I can share my wrapper code in VB6 (but can compile it in VB.NET) if someone is interested.
It has some very useful function for the calculation of planetary position. Ask for any further information.
Thank you
Paolo
- 21 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Thanks Meecc and Zheka, I tested your suggestion but got a compilation error "Incorrect argument type" for MyArray, also writing it as MyArray, without "[0]" This is the revised code: Vars: JulianDayUT(0), ret_flag(0), serr(""); array: MyArray[5](0); // This call is working DefineDLLFunc: "C:\Swiss ...
- 16 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Hello my another guess, also try changing from String to lpstr eg. from DefineDLLFunc: "swedll64.dll",Long,"swe_calc",Double,Long,Long,Double, String; to DefineDLLFunc: "swedll64.dll",Long,"swe_calc",Double,Long,Long,Double, lpstr; Thanks Mecc, but the array should be a double not a string
- 14 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Hello Meecc, thanks for your reply. I tested what you suggested but got a memory exception: <<EXCEPTION>> Code: 0xFFFFFFFFC0000005 ( -1073741819 ) Continuable: 0x0000000000000000 ( 0 ) Description: L'istruzione a 0x%p ha fatto riferimento alla memoria a 0x%p. La memoria non poteva essere %s. ErrorCo...
- 13 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Re: Calling external DLL from Power Language with array passed by reference
Hello Array declaration should be in the form of array: ArrayName[size](initialValue) ; sth like array: LongPos[5](0); Thanks Meecc, Yes the declaration of the array is incorrect in the cose I posted (corrected now), but this doesn't solve my problem. The question is: how I should declare the array...
- 12 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
- 12 Sep 2019
- Forum: MultiCharts
- Topic: Calling external DLL from Power Language with array passed by reference
- Replies: 19
- Views: 5987
Calling external DLL from Power Language with array passed by reference
I need clarification about external DLL calling from inside Power Language. The DLL is not crated by myself but is from a third-party software house. The DLL is correctly recognized and a simple function is working. However, I need to pass an array by reference in a function call and after many atte...