Hi, please see:

- www.mql5.com
Hello everyone,
There are countless functions in MSDN that are amazing and can help developers create creative and beautiful programs but the problem is there are no documentations on how to actually use those C++ functions in MQL4. I'd like your help in discovering how to implement them into MQL4/5.
These days, I wanted to change the mouse cursor using this function from MSDN: LoadCursorFromFile function
I didn't read SetCursor() documentation, but what do you mean with "it didn't work":
- what is the result of the function calls?
- are there any errors?
- if there are, what those error codes mean?
- is the path correct?
- did you try to use a path with a double backslash "\\"?
And now I read documentation for the SetCursor()
It looks like this:
HCURSOR WINAPI SetCursor( _In_opt_ HCURSOR hCursor );
It expects HCURSOR type and you are passing a string value.
No wonder it does not work.
But, hey, nice try attempting to push string instead of HCURSOR type (whatever that is).
- msdn.microsoft.com
I didn't read SetCursor() documentation, but what do you mean with "it didn't work":
- what is the result of the function calls?
- are there any errors?
- if there are, what those error codes mean?
- is the path correct?
- did you try to use a path with a double backslash "\\"?
Thank You
There were no errors and the path is correct and I tried a different path with backslashes. Nothing seemed to work !
Yeah it was a nice try and it didn't work.
I would like to know how all of MSDN function work in MQL4. It's a bit difficult to make those functions work on MQL4 !!
Thank You
There were no errors and the path is correct and I tried a different path with backslashes. Nothing seemed to work !
Yeah it was a nice try and it didn't work.
I would like to know how all of MSDN function work in MQL4. It's a bit difficult to make those functions work on MQL4 !!
It is not difficult from my point of view, however you cannot pass some types of parameters from MQL4 to Winapi (e.g. string arrays, callback functions).
It is not difficult from my point of view, however you cannot pass some types of parameters from MQL4 to Winapi (e.g. string arrays, callback functions).
How about passing some types of parameters from Winapi to MQL4 ? How do we do that ?
How about passing some types of parameters from Winapi to MQL4 ? How do we do that ?
What types ? Be more precise please.
There is nothing special in this example. It should involve winapi functions with strings and ints (which HANDLE/HCURSOR is), so it should work, as Ex Ovo Omnia mentioned.
There is nothing special in this example. It should involve winapi functions with strings and ints (which HANDLE/HCURSOR is), so it should work, as Ex Ovo Omnia mentioned.
I know, that's why I am asking more details.
HCURSOR Type.
Because I'd like to change the shape of the cursor once I am dragging a Rectangle or Canvas.
HCURSOR WINAPI SetCursor( _In_opt_ HCURSOR hCursor );

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone,
There are countless functions in MSDN that are amazing and can help developers create creative and beautiful programs but the problem is there are no documentations on how to actually use those C++ functions in MQL4. I'd like your help in discovering how to implement them into MQL4/5.
These days, I wanted to change the mouse cursor using this function from MSDN: LoadCursorFromFile function