Errors, bugs, questions - page 2732
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Start the search (any search, any name) and stop the search immediately. This will bring up a search bar where you can select the file type:
I know I need to find the video files. Everything. Absolutely. And what type and name they are, let the machine itself look for them.
It's hard to guess how the machine searches, but how to search in DOS (press Win+R and write cmd), like this:
I googled the first websitehttp://fileext.ru/video, pasted it into Excel, so that it would be in columns, then into notepad
last parameter where to write search data with paths and file names d:\filename.txt
I checked. It's working.... but my binary has nothing to do with video ))))
I want to return the string from .dll to MQL4 (MQL5 has no problems at all)
I've already made a lot of mistakes, so I need to ask the knowledgeable: What is an array of strings in memory? - What is an array of strings?
I want to return the string from .dll to MQL4 (MQL5 has no problems at all)
I've already made a lot of mistakes, so I need to ask the knowledgeable: What is an array of strings in memory? - What is an array of strings?
what is an array of strings in memory? - what is a string array?!
About MASSIVE data structure.
I am describing it for MT5, the same should be for MT4 as well, probably something will be different, but it should be close.
In general, the array consists of two parts: description and data, but it may also consist of data only.
string s_arr_1[];- dynamic array which consists of a description and a data array.Data is the memory allocated for the array elements.
Description - the structure containing the following fields, the sequence is not saved:
string s_arr_2[10]; - the array type depends on the string location:
if used as a local variable, it is a static array, which consists of a description and an array of data, located sequentially on the stack.
if used as a field in a structure/class, it is just a data array (there is no description part).
About data structure MASSIVE.
This is a description from memory and for MT5, the same should be for MT4 as well, probably something will be different but it should be close.
In general, the array consists of two parts: description and data, but it may also consist of data only.
string s_arr_1[];- dynamic array, which consists of a description and a data array.Data is the memory allocated for the array elements.
Description - the structure containing the following fields, the sequence is not saved:
string s_arr_2[10]; - array type depends on string location:
if used as a local variable, it is a static array, which consists of a description and an array of data, located sequentially on the stack.
if used as a field in a structure/class, it is just a data array (there is no description part).
Thank you!
There was a hope that maybe some standard structure from WinAPI exists, but apparently it can't be the same with strings
SZZ: I have fixed the exchange with dll, but as before in 2 calls - request for action in dll and return the required buffer size for string and the 2nd call with string copying into the prepared buffer, ok, the problem is local, but I was hoping that I would simplify the solution
An array of strings is an array of string objects. Somewhere, some developer wrote that there are two fields: a pointer to a string and 32 bits of allocated memory size. In general, it would be nice to write such things in official docs, so as not to guess.
the main problem is that MQL4 and 5 are very different programs ))))
String in MQL4 is perfectly parsed in .Net byStringBuilderClass, so you're right that the string is not a memory location, but rather an object.
About the data structure STR.
I describe it from memory for MT5, the same should apply to MT4 too, probably, something will be different, but it should be close.
Data contains the following fields:The line consists of Description + Data.
The Description contains the following fields:
About the data structure STR.
I describe it from memory for MT5, the same should apply to MT4 too, probably, something will be different, but it should be close.
The data contains the following fields:The line consists of Description + Data.
The Description contains the following fields:
Question. Is it described somewhere or did you analyze it yourself?
I want to return the string from .dll to MQL4 (MQL5 has no problems at all)
I've already made a lot of mistakes, so I need to ask the knowledgeable: What is an array of strings in memory? - What is an array of strings?
Pass only a uchar array instead of a string array. It's easier that way.
For example, you can convert like this:
Works the same for MQL4 and MQL5