windows.h stdio.h under windows 10

To add comments, please log in or register
Essam Daoud
1129
Essam Daoud  

Hi

The 2 lines below are braking my code:

#include <windows.h>
#include <stdio.h>


Error:

can't open "C:\Users\myname\AppData\Roaming\MetaQuotes\Terminal\someid\MQL4\Experts\windows.h"


I tried to locate the files manually on my system for no avail

Any suggestions?


Thanks

William Roeder
20210
William Roeder  
Stop and step away from the keyboard. Those are not MT4/MT5 files. They are C header files. Useless.
Essam Daoud
1129
Essam Daoud  
Is not there a way to use windows system commends calls from with in mql4?
Essam Daoud
1129
Essam Daoud  

I am trying to find a way that mql4 can take a screen shot and save it to a file.

apparently the

WindowScreenShot("shots\\" +Symbol() + ".gif",640,480);

Is giving me some pain https://www.mql5.com/en/forum/262405

Do I look to make a dll to take a screen shot and use that dll in mql4?

Thanks

WindowScreenShot shifts the image
WindowScreenShot shifts the image
  • 2018.07.03
  • www.mql5.com
Hi The code below is expected to take the screen shot of the chart window as is, but when I shift the chart window x number of bars, it still takes...
William Roeder
20210
William Roeder  
samjesse: Is giving me some pain https://www.mql5.com/en/forum/262405

Why would you want to take a shot of an shifted chart?

samjesse: Is not there a way to use windows system commends calls from with in mql4?

No one said that. You have to write a MT4 import.

Essam Daoud
1129
Essam Daoud  
whroeder1:

Why would you want to take a shot of an shifted chart?

I am NOT.

the result image is shifted UN expected. That is the problem. I want the output to be the normal "current bar" to the far right side of the window, but what I get is a shifted version.

The problem happens with a custom indicator and the images attached are a simplified example to show case.

thx

To add comments, please log in or register