windows.h stdio.h under windows 10

 

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

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

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...
 
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.

 
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

Reason: