- Search Energy EXCH
- 47 Results
- skinner36 replied Aug 22, 2019
Hi Emmzett, Would you have any example C++ code utilising threading? I have read various bits of documentation but I can't get anything to work with the above code in the previous post. Cheers, John
- skinner36 replied Jun 17, 2019
I am very surprised at the speed of FileSaveArray() and FileReadArray(). it wrote and read 2000000 values in the blink of an eye, Thanks to everyone for the suggestions Cheers, John
- skinner36 replied Jun 16, 2019
The problem there is that global variables are single values and I need to access a large array
- skinner36 replied Jun 16, 2019
Hi Beertje. I don't really need a structure as it is only a one dimensional array. I have steered away from writing to a file as IO is pretty slow. I will test the filewritearray though as I have never used it
- skinner36 replied May 31, 2019
Hi Emmzett I was just looking at the QuickChannel documentation and it looks very interesting. Have you used QuickChannel for passing a reference to a an array between MQL programs?
- skinner36 replied May 31, 2019
That is what I am currently testing
- skinner36 replied May 31, 2019
Hi, Sometimes it would be very useful to use the same data between mql programs. I know that we can use global variables but that is only for a single double value. What if we wanted to access an array of double values. Is there any way that we ...
- skinner36 replied May 8, 2019
As Emmzett pointed out all of this information was in the DLL example supplied with MT4. I think there are two reasons that I didn't see it and they were: 1. Because I am only learning C++ I didn't really know what I was looking for and the example ...
- skinner36 replied May 6, 2019
Thanks again emmzett for the very detailed explanation. it is very difficult to find information on the Internet on passing data to and from MQL and DLL's so I will keep updating this thread as I go.
- skinner36 replied May 6, 2019
My thoughts were to try to pass a pointer to an array of struct but so far it is generating an error. Does anyone know if this is possible?
- skinner36 replied May 5, 2019
Hi guys, When you are learning a new programming language it seems like the challenges can be never ending so this is the next step in me trying to accomplish my task at hand. My background is in C# where you have the luxury of having all this ...
- skinner36 replied May 3, 2019
Good morning Emmzett, Would this information be more correct to put into a def file then rather than put it into the properties of the project? On another note I was playing around with passing an array of structs from MQL and using it as a vector ...
- skinner36 replied May 3, 2019
!!!!!!!!!!!!! BINGO - It is working !!!!!!!!!!!!!!!!!!!!!! Thank you for your patience and help emmzett. For anyone that has the same problem this is my complete test code and linker configuration for Visual Studio MQL Code: #property strict #import ...
- skinner36 replied May 3, 2019
This question is going to show my C++ ignorance but here goes. If you think I need to use #pragma because the function name has rubbish in it then why would the function work when I pass a single dimension array but fail when I pass a multi ...
- skinner36 replied May 3, 2019
I am using Visual Studio Community 2017 Version 15.9.7 This is the complete code #define MYDLL_EXPORT comment(linker, "/EXPORT:"__FUNCTION__"="__FUNCDNAME__) void WINAPI ArrayTestingFunction(double testArray[][10]); void WINAPI ...
- skinner36 replied May 3, 2019
Please note that the C++ function is of type int. I changed it to void to match the MQL import with no change in the error
- skinner36 replied May 3, 2019
These are the results after the change was made to the DLL The C++ Function is now like this: #define MYDLL_EXPORT comment(linker, "/EXPORT:"__FUNCTION__"="__FUNCDNAME__) int WINAPI ArrayTestingFunction(double testArray[][10]) { double value = ...
- skinner36 replied May 3, 2019
Emmzett, Before I make the modification you suggest I thought I would show you the results from PE Explorer on the original code as a reference point. Also note that if I change the array to single dimension it works as I would expect. The C++ ...
- skinner36 replied May 2, 2019
Thank you for your reply Emmzett As a side note I would also like to thank you for pointing me to your github code. I am going through it as a tutorial even though it far above what I understand at present. Your example does compile cleanly and I ...
- skinner36 replied May 2, 2019
Hi Guys, I am still well and truly stuck on this issue. Again any help would be very much appreciated. I forgot to mention in my initial post that I am very much a beginner when it comes to C++ programming My test EA is is as follows #import ...