- Search Energy EXCH
- 52 Results (5 Threads, 47 Replies)
- 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
Incrementing a value from a DLL
-
Incrementing a value from a DLL
Started Jul 1, 2019|Platform Tech|2 repliesHi, I am offloading some processes off to a C++ DLL and in this DLL I want to calculate the ...
- 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
Plotting an array of values to the screen from an EA
- skinner36 replied Jun 16, 2019
The problem there is that global variables are single values and I need to access a large array
Plotting an array of values to the screen from an EA
- 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
Plotting an array of values to the screen from an EA
-
Plotting an array of values to the screen from an EA
Started Jun 16, 2019|Platform Tech|7 repliesHi, I have searched the Internet for a solution to my problem but I haven't been able to find ...
- 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?
Passing multi parameter array to a C++ DLL
- skinner36 replied May 31, 2019
That is what I am currently testing
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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.
Passing multi parameter array to a C++ DLL
- 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?
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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 ...
Passing multi parameter array to a C++ DLL
- 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
Passing multi parameter array to a C++ DLL
- 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 = ...
Passing multi parameter array to a C++ DLL
- 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++ ...
Passing multi parameter array to a C++ DLL